这个是因为,mysql8之前的版本使用的密码加密规则是mysql_native_password,但是在mysql8则是caching_sha2_password,所以需要修改密码加密规则。

1、进去mysql 8.0 command line client

2、输入use mysqlselect user,host,plugin,authentication_string from user;

可以看到如下的界面,即用户的密码加密规则

[已解决]报错: Unable to load authentication plugin 'caching_sha2_password'.

3、alter user 'root' @'localhost' identified with mysql_native_password by 'admin';

[已解决]报错: Unable to load authentication plugin 'caching_sha2_password'.

本文参考网络

相关文章:

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