Solve the problem of flashback when MySQL 8.0 Command Line Client is opened

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:

  1. 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
    insert image description here

  2. Right-click "MySQL 8.0 Command Line Client" and select "Properties" - copy the file path in "Target"
    insert image description here
    insert image description here

  3. 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.

  4. 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

  5. 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
    insert image description here

Guess you like

Origin blog.csdn.net/weixin_47678894/article/details/122737182