Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: Tidb 手工hint
[Test Environment for TiDB]
[TiDB Version] v6.1.0
[Reproduction Path]
[Encountered Issue: The hint verification result is different from the official documentation, as shown in the figure]
[Resource Configuration]
[Attachment: Screenshot/Log/Monitoring]
Experimenting with this statement, the result is as follows
It used HashJoin instead of IndexJoin. I checked and found that before version V6.4.0, it also used IndexJoin.
Very confused, can any expert explain this to a newbie?
Could you please send the document link?
Try adding --comments when connecting with the MySQL client?
I did an experiment, and it worked. Why is that?
Because if not added, comments will be excluded by default, meaning the content in the hint will be automatically ignored.
The old version of the MySQL client will ignore hints by default, you need to manually add -c.
I manually operated it once and found the result was incorrect. I copied and pasted it again, and both results were the same. I don’t know why 
Using the command line is overwhelming, better install a tool.
I’m using Xshell. Do you have any recommended tools?
You can take a look here.
Is this thing easy to use?
Sure, please provide the Chinese text you need translated.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.