目录
1.Mysql8使用客户端链接时报错
报错内容:Authentication plugin 'caching_sha2_password' cannot be loaded
报错原因:Mysql8采用了不同的密码加密方式,加密方式对应 mysql库下的user表的plugin字段
解决办法
1.在服务器中登陆Mysql:
mysql -uroot -proot
2.修改密码:
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '123456';
博客主要讲述了Mysql8使用客户端连接时出现的报错,报错内容为 'Authentication plugin 'caching_sha2_password' cannot be loaded',原因是Mysql8采用不同密码加密方式,对应mysql库下user表的plugin字段,还给出了在服务器登陆Mysql并修改密码的解决办法。

被折叠的 条评论
为什么被折叠?



