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是我自己连接数据库的密码哈
————————————————
版权声明:本文为CSDN博主「yhy_」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_36222137/article/details/81293332

相关文章:

  • 2021-07-19
  • 2021-08-04
  • 2021-06-04
  • 2022-01-19
  • 2021-09-25
  • 2021-07-29
猜你喜欢
  • 2022-12-23
  • 2021-07-11
  • 2021-05-17
  • 2021-08-23
  • 2021-06-12
相关资源
相似解决方案