这个错可能是mysql默认使用 caching_sha2_password
作为默认的身份验证插件,而不再是 mysql_native_password
,但是客户端暂时不支持这个插件导致的。

解决方法一:修改MySQL全局配置文件

编辑 my.cnf
文件,更改默认的身份认证插件。

$ vi /etc/my.cnf

在 [mysqld]
中添加下边的代码

default_authentication_plugin=mysql_native_password

然后重启mysql

$ service mysqld restart

 

相关文章:

  • 2021-07-19
  • 2021-08-30
  • 2022-01-29
  • 2021-09-14
  • 2022-12-23
  • 2022-12-23
  • 2022-03-10
  • 2021-11-15
猜你喜欢
  • 2021-08-26
  • 2021-10-28
  • 2021-11-25
  • 2021-06-22
  • 2022-12-23
  • 2021-08-13
相关资源
相似解决方案