Navicat for mysql unable to resolve server problems connected mysql8.X

The reason: Because the password encryption rules msql 8.X not like 5.X, so modify the service-side encryption rules to solve this problem.

step:

ALTER USER 'root' @ 'localhost' IDENTIFIED BY 'Qaz123 #' PASSWORD EXPIRE NEVER; # modify the encrypted rules

 

ALTER USER 'root' @ 'localhost' IDENTIFIED WITH mysql_native_password BY 'Qaz123 #'; # update about the user's password

 

FLUSH PRIVILEGES; # refresh permission

 

Guess you like

Origin www.cnblogs.com/iniu/p/12000349.html