ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client

 

 一般出现这个错误都是影响mysql版本,导致密码加密的方式不一样导致。

所以要去mysql里面修改一下密码的加密方式,如下;

alter user 'root'@'localhost' identified with mysql_native_password by ‘new password’;
flush privileges;

 

如果还是报这个问题,也有可能是主机名导致。

rename user 'root'@'localhost' to 'root'@'%'

允许所以的主机连接

posted @ 2020-03-19 22:30  蒋大忙  阅读(469)  评论(0)    收藏  举报