该错误的原因是在Mysql8之前版本中加密规则是mysql_native_passWord,而在Mysql8以后的加密规则为caching_sha2_password。 解决此问题有两种方法,一种是更新navicat驱动来解决此问题,一种
该错误的原因是在Mysql8之前版本中加密规则是mysql_native_passWord,而在Mysql8以后的加密规则为caching_sha2_password。
解决此问题有两种方法,一种是更新navicat驱动来解决此问题,一种是将mysql用户登录的加密规则修改为mysql_native_password。此处采用第二种方式。
具体做法:
使用cmd的方式连接到MySQL数据库
设置密码永不过期
alter user 'root'@'localhost' identified by '密码' password expire never;
alter user 'root'@'localhost' identified by 'root' password expire never;
设置加密规则为mysql_native_password
alter user 'root'@'localhost' identified with mysql_native_password by '密码';
alter user 'root'@'localhost' identified with mysql_native_password by 'root';
重新点击Navicat的连接测试发现连接成功了!
来源地址:https://blog.csdn.net/weixin_70494334/article/details/130666367
--结束END--
本文标题: Navicat的使用:报2059错误解决方案
本文链接: https://www.lsjlt.com/news/409930.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-05-16
2024-05-16
2024-05-16
2024-05-15
2024-05-15
2024-05-15
2024-05-15
2024-05-15
2024-05-15
2024-05-15
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0