博客来源:

安装好mysql,配置好密码后准备使用Navicat进行连接操作mysql,结果输入的时候出现错误

2059 - Authentication plugin 'caching sha2 password' cannot be loaded:(乱码不予展示)

原因:

在mysql8之前的版本中加密规则为mysql_native_password,而在mysql8以后的加密规则为caching_sha2_password

那么更改一下Navicat识别的密码不就好了 root为我的密码,你可以进行更换你的密码

ALTER USER root@localhost IDENTIFIED WITH mysql_native_password BY 'root';

操作截图

再次连接成功【连接名为 : .   是不会出错的,有些其他名称会导致连接失败】

 

 

Logo

更多推荐