当前位置: 移动技术网 > IT编程>数据库>Mysql > 关于Navicat连接MySQL 报 Authentication plugin 'caching_sha2_password' cannot be loaded

关于Navicat连接MySQL 报 Authentication plugin 'caching_sha2_password' cannot be loaded

2019年01月09日  | 移动技术网IT编程  | 我要评论

报错原因:

  报这个错是因为mysql8使用了 caching_sha2_password 加密方式而之前mysql使用的是 mysql_native_password 加密方式,而你的navicat不支持 caching_sha2_password 加密方式造成的。

 

解决方案:

  目前我知道的解决方案有两种

  1. 修改mysql加密方式

1 use mysql;
2 alter user 'root'@'localhost' identified with mysql_native_password by '新密码'; 
3 flush privileges;

  2. 给navicat添加插件

    先从在网上找到 caching_sha2_password.dll , 百度云:https://pan.baidu.com/s/1z38mat6ymhoudry7djayrw  提取码: sdss

    然后将dll文件直接放到navicat根目录即可。

日常写bug

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

相关文章:

验证码:
移动技术网