使用mysql8.0版本,登录失败,提示 Authentication plugin 'caching_sha2_password' is not supported。

原因是在MySQL 8.0以后,默认的密码加密方式是caching_sha2_password而不是mysql_native_password。

解决方法:

1.登录mysql数据库 mysql -u root -p

2.更新身份认证方式 ALTER USER '你的用户名' IDENTIFIED WITH mysql_native_password BY '你的用户密码';

相关文章:

  • 2021-07-17
  • 2022-12-23
  • 2021-08-30
  • 2021-12-18
  • 2021-05-16
  • 2022-12-23
  • 2022-12-23
  • 2021-04-07
猜你喜欢
  • 2022-12-23
  • 2021-08-17
  • 2021-12-27
  • 2022-01-14
  • 2021-12-12
  • 2022-12-23
  • 2021-11-03
相关资源
相似解决方案