我安装的mysql版本是8.0.25,链接客户端sequel pro报错MySQL said: Authentication plugin 'caching_sha2_password' cannot be loaded: dlopen(/usr/local/mysql/
1 查看当前账户,和密码
select user,host,password from user;
或者是否设置了authentication_string
select user,host,authentication_string,plugin from mysql.user;
2 如果没有设置,就重置密码
grant all privileges on *.* to 'yourname'@'localhost' identified by 'yourpassword'
或者对应第二种情况
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '12345678';
我的属于第二种情况。解决了
如果是不重要的用户名,也可以通过新建用户赋予权限,
grant all privileges on *.* to 'xxx'@'localhost' identified by 'xxxx' ;