After the successful installation of MySQL 8.0, it was found that a one-second flashback occurred when the MySQL 8.0 Command Line Client was opened:
-
As shown in the figure, find My SQL 8.0 Command Line Client in the menu in the lower left corner of the computer - right click and select "More" - then select "Open File Location" to open the file path where it is located
-
Right-click "MySQL 8.0 Command Line Client" and select "Properties" - copy the file path in "Target"
-
The target path I copied is like this, "D:\MySQL Files\MySQL Server 8.0\bin\mysql.exe" "–defaults-file= D:\MySQL Files\MySQL Server 8.0\my.ini " "-uroot " "-p"
Look at the bold paragraph, "D:\MySQL Files\MySQL Server 8.0\my.ini"", you will find that the my.ini file is a path with a bunch of suffixes in D:\MySQL Files Down. -
Here comes the problem. The my.ini file found on the computer is actually in the path of D:\MySQL Data plus a bunch of suffixes. I haven’t touched anything after installing it. I don’t know why this happens. But it is certain that the location of the my.ini file is problematic
-
Therefore, copy the found my.ini file to the D:\MySQL Files\MySQL Server 8.0 path to make the target path correct. In this way, the problem is solved, and then the MySQL 8.0 Command Line Client can be used normally