mysql 无法连接 Unable to load authentication plugin ‘caching_sha2_password‘

这个是因为,mysql8之前的版本使用的密码加密规则是mysql_native_password,但是在mysql8则是caching_sha2_password,所以需要修改密码加密规则。

进入数据库终端

mysql > use mysql
select user,host,plugin,authentication_string from user;
alter user 'root' @'localhost' identified with mysql_native_password by '123456';

这样是为了mysql 8 能在图形化页面 进行操作
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_45417821/article/details/121396819