当前位置: 移动技术网 > IT编程>数据库>Mysql > 解决Navicat连接MySQL时“Client does not support authentication protocol requested by server; consider upgrading MySQL client”的问题

解决Navicat连接MySQL时“Client does not support authentication protocol requested by server; consider upgrading MySQL client”的问题

2020年03月11日  | 移动技术网IT编程  | 我要评论

 

原因:mysql server使用的是8.0的版本,密码加密方式发生了变化,使用的navicat版本较低,不能适配8.0的mysql的加密方式。

 

3种解决方式:

1、下载安装最新版的navicat

 

 

2、打开mysql自带的命令行客户端,输入密码

alter user 'root'@'localhost' identified by 'abcd' password expire never;  #修改加密方式

alter user 'root'@'localhost' identified with mysql_native_password by 'abcd'; #适配navicat

flush privileges; #刷新生效

用户名、mysql server的地址、密码要换为自己的

 

 

3、使用其它的数据库管理工具,比如datagrip

 

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网