一、问题 在连接远程用户时出现该错误 :Authentication plugin ‘caching_sha2_passWord‘ cannot be loaded 原因是:Mysql8 之前的版本中加密规
在连接远程用户时出现该错误 :Authentication plugin ‘caching_sha2_passWord‘ cannot be loaded
原因是:Mysql8 之前的版本中加密规则是mysql_native_password,而在mysql8之后,加密规则是caching_sha2_password。
mysql -uroot -p
# 修改加密规则ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER;# 更新一下用户的密码ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
# 刷新权限(可以直接复制)flush privileges;
#自定义密码alter user 'root'@'localhost' identified by 'dgdggdgdg';
重新打开软件,再次连接数据库即可
来源地址:https://blog.csdn.net/ZHY_ERIC/article/details/124470136
--结束END--
本文标题: Authentication plugin ‘caching_sha2_password‘ cannot be loaded
本文链接: https://www.lsjlt.com/news/409891.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-05-30
2024-05-30
2024-05-30
2024-05-30
2024-05-30
2024-05-30
2024-05-30
2024-05-30
2024-05-30
2024-05-30
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0