本机成功安装了mysql8.x之后,使用Navicat链接,一直提示1251- Client does not support authentication protocol requested by server;consider upgrading Mysql client错误
解决方法:
1、找到mysql服务登陆之后执行命令,可以看到root用户使用的plugin是caching_sha2_password
select host,user,plugin,authentication_string from mysql.user;
2、只要将plugin修改为mysql_native_password即可,执行以下命令:
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';
#更新user为root,host为localhost 的密码为root,使用mysql_native_password的plugin
执行完成后,再次连接,就正常ok了
查询网上的说明是:mysql8.x之前的版本中加密规则是mysql_native_password,而在mysql8之后,加密规则是caching_sha2_password, 如果Navicat还是用低版本的话,那就需要把mysql的plugin改为mysql_native_password即可,或者升级Navicat也行 ~
提示:请勿发布广告垃圾评论,否则封号处理!!