An error occurred when SQLyog connected to MySQL, prompting the solution of Client does not support authentication protocol requested by server

Question: I have installed MySQL8.0.26 on my computer, but I found the cracked version of SQLyog software from the Internet. After installing SQLyog, I can’t connect, and the message “Client does not support authentication protocol requested by server” will pop up……;

Reason: Because the encryption rule in versions before mysql8 is mysql_native_password, and after mysql8, the encryption rule is caching_sha2_password.

Solution: restore the mysql user login password encryption rules to mysql_native_password.

  1. Run Shell (Administrator);
  2. Enter `mysql -uroot -p` and then enter the password you started;
  3. Then enter `ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'new password' ;` Just change the new password by yourself;
  4. Enter `flush privileges;` to close the command line manager;
  5. Open the SQLyog link again.

Guess you like

Origin blog.csdn.net/weixin_51909882/article/details/126335480