MYSQL:2059 Aunthentication plugin caching_sha2_password connot be loaded问题解决办法(Mysql连接Navicat)

数据库可视化,数据库连接出现问题;

2059 - Aunthentication plugin 'caching_sha2_password' connot be loaded问题解决办法

1045-Access denied for user 'root'@'localhost'或者@“ip”解决方法

1、查看此文件夹下是否有my.ini文件。

2、打开这个目录,把隐藏项目勾上,然后进入到ProgramData中;

3、把该文件复制到图1的目录中;

4、将my.ini中的:default_authentication_plugin=caching_sha2_password

改成:default_authentication_plugin=mysql_native_password

5、进入Mysql命令行后修改密码,ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';

然后就可以连接了。