连接MySQL出现 2059 - authentication plugin ‘caching_sha2_password’ -navicat 解决方式
2021/11/4 2:10:12
本文主要是介绍连接MySQL出现 2059 - authentication plugin ‘caching_sha2_password’ -navicat 解决方式,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
连接MySQL出现 2059 - authentication plugin ‘caching_sha2_password’ -navicat 解决方式
`
这个错误的原因是由于MySQL8.0之后的加密规则为caching_sha2_password.而在此之前的加密规则为mysql_native_password。
可以将加密规则改成mysql_native_password来
1、mysql -u root -p (登录MySQL,使用命令)
2、ALTER USER ‘root’@’%’ IDENTIFIED BY ‘password’ PASSWORD EXPIRE NEVER; (修改加密规则)
3、ALTER USER ‘root’@’%’ IDENTIFIED WITH mysql_native_password BY ‘password’; (更新用户密码)
4、FLUSH PRIVILEGES; (刷新权限)
5、alter user ‘root’@’%’ identified by ‘你的密码’;(重置密码)
这篇关于连接MySQL出现 2059 - authentication plugin ‘caching_sha2_password’ -navicat 解决方式的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-09-21MySQL集群部署资料:新手入门教程
- 2024-09-21MySQL集群资料:初学者入门指南
- 2024-09-21部署MySQL集群资料:新手入门教程
- 2024-09-20MySQL集群部署教程:新手入门指南
- 2024-09-20MySQL集群教程:初学者必备指南
- 2024-09-20部署MySQL集群项目实战:新手入门教程
- 2024-09-20如何部署MySQL集群:简单教程
- 2024-09-20MySQL集群部署:新手入门指南
- 2024-09-20部署MySQL集群学习:入门指南
- 2024-09-20部署MySQL集群入门教程