安装mysql8.0.17时候报错1251-Client does not support authentication protocol requested by server; consider upgrading MySQL client

When you install mysql database when the choice is encrypted password when connecting with navicat time error 1521, this time landing mysql execute the following code after it can cmd

 

Code:

mysql> alter user root@localhost identified by 'root' password expire never;
mysql> alter user root@localhost identified with mysql_native_password by 'root' ;
mysql> flush privileges;//刷新权限

Guess you like

Origin www.cnblogs.com/songyinan/p/11349805.html