先看连接错误 连接失败:2059 - Authentication plugin 'caching_sha2_password' cannot be loaded: ....
MySql 8.0服务端安装后,用navicat12连接时报2059错误_解决

 

解决方法:

进入MySQL控制台,执行如下命令:

use mysql;
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';

注意:'是英文的单引号
这里的localhost对应本地,如果是远程访问 mysql的话,需要将localhost改成%;
password是root的密码,使用时也要进行对应修改。

 

相关文章:

  • 2021-04-05
  • 2021-05-14
  • 2022-01-05
  • 2022-12-23
  • 2021-07-28
  • 2021-05-06
  • 2022-12-23
  • 2022-02-19
猜你喜欢
  • 2022-12-23
  • 2021-12-26
  • 2021-11-07
  • 2021-08-17
  • 2022-12-23
  • 2022-01-05
  • 2021-07-14
相关资源
相似解决方案