Client does not support authentication protocol requested by server 解决Navicat连接不上MySql服务器报错

1、问题原因

通过相关问题查阅,发现是由于navicat版本的问题造成连接失败。mysql8 之前的版本中加密规则是mysql_native_password,而在mysql8之后,加密规则是caching_sha2_password

2、问题解决

2.1查看版本,确定问题

Client does not support authentication protocol requested by server 解决Navicat连接不上MySql服务器报错

 

 或者登陆状态下查看

Client does not support authentication protocol requested by server 解决Navicat连接不上MySql服务器报错

 

 2.2、添加命令规则

ALTER USER ‘root‘@‘localhost‘ IDENTIFIED BY password‘ PASSWORD EXPIRE NEVER; //划线部分修改为自己的密码

  修改密码

ALTER USER ‘root‘@‘localhost‘ IDENTIFIED WITH mysql_native_password BY ‘password‘; //划线部分修改为自己的新密码

  刷新权限,修改生效

FLUSH PRIVILEGES; 

  

 

Client does not support authentication protocol requested by server 解决Navicat连接不上MySql服务器报错

上一篇:MySQL工具Atlas的安装使用


下一篇:Mysql