mysql 8.0 默认使用 caching_sha2_password 身份验证机制 —— 从原来的 mysql_native_password 更改为 caching_sha2_password。

从 5.7 升级 8.0 版本的不会改变现有用户的身份验证方法,但新用户会默认使用新的 caching_sha2_password 。

客户端不支持新的加密方式。

修改用户的密码和加密方式。在命令行模式下进入mysql。

输入以下命令:

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';

参考

原文链接:https://blog.csdn.net/m290345792/article/details/88316962

相关文章:

  • 2021-09-07
  • 2021-11-16
  • 2022-12-23
  • 2021-11-25
  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
  • 2021-12-20
猜你喜欢
  • 2021-07-15
  • 2021-11-03
  • 2021-09-27
  • 2021-05-10
  • 2022-12-23
  • 2021-12-07
  • 2022-12-23
相关资源
相似解决方案