当前位置:Gxlcms > 数据库问题 > mysql 无法连接提示 Authentication plugin 'caching_sha2_password' cannot be loaded

mysql 无法连接提示 Authentication plugin 'caching_sha2_password' cannot be loaded

时间:2021-07-01 10:21:17 帮助过:6人阅读

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 XXXX@% IDENTIFIED WITH mysql_native_password BY XXXXXXXX;

3 最后需要刷新下权限

flush privilege

4 如果是不重要的用户名,也可以通过新建用户赋予权限,

grant all privileges on *.* to xxx@localhost identified by xxxx ;

 

mysql 无法连接提示 Authentication plugin 'caching_sha2_password' cannot be loaded

标签:ade   通过   alter   password   div   style   ant   没有   ica   

人气教程排行