Navicat 连接MySQL服务出现异常,错误代码1251

错误提示

           1251-Client does not support authentication protocol requested by server; consider upgrading MySQL client

解决办法:

           用管理员身份打开cmd,输入 mysql -uroot -p  [-h locahost -P 3306]括号内为默认内容,回车输入root密码进入MySQL客户端;然后

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

 

PS:    "yourpassword"是root用户密码。
此时,Navicat可以连接成功,问题解决!

你可能感兴趣的:(MySQL,MySQL,Navicat,连接异常)