mysql 8.0 默认使用 caching_sha2_password 身份验证机制 —— 从原来的 mysql_native_password 更改为 caching_sha2_password。 
从 5.7 升级 8.0 版本的不会改变现有用户的身份验证方法,但新用户会默认使用新的 caching_sha2_password 。

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

登录mysql后:

ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '新密码';
FLUSH PRIVILEGES;

 注意,mysql8需要用Navicat12版本来连接。

相关文章:

  • 2022-12-23
  • 2021-10-15
  • 2022-12-23
  • 2021-04-27
  • 2022-12-23
  • 2022-12-23
  • 2021-07-02
  • 2021-11-30
猜你喜欢
  • 2021-09-18
  • 2022-12-23
  • 2022-01-17
  • 2021-12-04
  • 2022-12-23
  • 2021-04-17
  • 2021-12-28
相关资源
相似解决方案