很多用户在使用Navicat Premium 12连接MySQL数据库时会出现Authentication plugin 'caching_sha2_password' cannot be loaded的错误

错误原因:

mysql 8.0 默认使用 caching_sha2_password 身份验证机制 —— 从原来的 mysql_native_password 更改为 caching_sha2_password。 
从 5.7 升级 8.0 版本的不会改变现有用户的身份验证方法,但新用户会默认使用新的 caching_sha2_password 。

客户端不支持新的加密方式。

 

解决方式:

1.进入mysql容器
docker exec -it mysql02 bash
2.登录mysql
mysql -u root -p
3.修改账户密码加密规则
ALTER USER 'root' IDENTIFIED WITH mysql_native_password BY '123456';

 

处理结果:

Authentication plugin 'caching_sha2_password' cannot be loaded的解决方案

 

 

 

相关文章:

  • 2021-11-09
  • 2022-12-23
  • 2021-06-18
  • 2022-12-23
  • 2021-12-20
  • 2021-11-16
猜你喜欢
  • 2021-12-18
  • 2021-04-06
  • 2021-08-16
  • 2021-04-05
相关资源
相似解决方案