Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by serv

 

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

起因:mysql8.0加密方式的原因报错。

解决办法:

执行指令

mysql -u root -p

123456

use mysql;

alter user 'root'@'localhost' identified with mysql_native_password by '123456';

flush privileges;

注意:123456是我自己连接数据库的密码哈
————————————————

原文链接:https://blog.csdn.net/weixin_36222137/article/details/81293332

posted @ 2022-03-20 20:08  威武的大萝卜  阅读(2054)  评论(0)    收藏  举报