数据库可视化,数据库连接出现问题;
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';
然后就可以连接了。



本文详细介绍了如何解决常见的MySQL数据库连接错误,包括2059-Authentication plugin 'caching_sha2_password' cannot be loaded问题及1045-Access denied for user 'root'@'localhost'或@“ip”的解决方法。通过修改my.ini文件中的认证插件,并更新root用户的密码,最终实现数据库的正常连接。
1万+

被折叠的 条评论
为什么被折叠?



