mysql8.0 Authentication plugin 'caching_sha2_password' cannot be loaded

安装mysql8.0后使用navicat创建连接, 然后报如题所示警告.可参考如下解决方案:

https://stackoverflow.com/questions/49194719/authentication-plugin-caching-sha2-password-cannot-be-loaded

8.0改变了身份验证插件,改成使用老版本的身份验证插件方式就好了。

我的操作步骤:

1.修改C:\ProgramData\MySQL\MySQL Server 8.0\my.ini文件中,caching_sha2_password改为mysql_native_password

#default_authentication_plugin=caching_sha2_password
default_authentication_plugin=mysql_native_password

2.修改mysql密码, 重启mysql服务就ok了.

cd "C:\Program Files\MySQL\MySQL Server 8.0\bin"

C:\Program Files\MySQL\MySQL Server 8.0\bin> mysql -u root -p
Enter password: *********

mysql> ALTER USER ‘root‘@‘localhost‘ IDENTIFIED WITH mysql_native_password BY ‘newrootpassword‘;
Query OK, 0 rows affected (0.10 sec)

mysql> exit

========================================我是分割线==========================================

感谢:

1.https://www.cnblogs.com/zzqc/p/9192217.html

2.https://blog.csdn.net/zixiao217/article/details/80156362 

mysql8.0 Authentication plugin 'caching_sha2_password' cannot be loaded

原文地址:https://www.cnblogs.com/yadongliang/p/9381796.html

时间: 2024-07-29 08:47:02

mysql8.0 Authentication plugin 'caching_sha2_password' cannot be loaded的相关文章

authentication plugin caching_sha2_password cannot be loaded

最近下载新的MySQL8.0 来使用的时候, 通过sqlyog.或者程序中连接数据库时,提示:Authentication plugin 'caching_sha2_password' cannot be loaded 的错误,经查看发现,8.0改变了 身份验证插件 , 打开 my.ini (或者my.cofg) 可以看到变更了 5.7及其以前的方式: mysql_native_password 解决 Authentication plugin 'caching_sha2_password' c

Navicat Premium 连接MySQL数据库出现Authentication plugin 'caching_sha2_password' cannot be loaded的解决方案

1.运行cmd,目录定位到MySql的安装目录“C:\Program Files\MySQL\MySQL Server 8.0\bin” 2.运行mysql 3.运行如下的两个命令 ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER; ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'

ERROR 2059 (HY000): Authentication plugin 'caching_sha2_password' cannot be loaded

在本地链接虚拟机docker的mysql的时候,出现这个问题,这个问题主要就是我们的mysql的版本比较高,更换了密码验证的方式: 问题: 连接Docker启动的mysql出现:ERROR 2059 (HY000): Authentication plugin 'caching_sha2_password' cannot be loaded C:\mysqldata>mysql -h 127.0.0.1 -P 13306 -uroot -pEnter password: ****ERROR 20

Django2.2连接MySQL报错Authentication plugin 'caching_sha2_password' cannot be loaded

之前在升级网站的时候,runserver遇到了Authentication plugin 'caching_sha2_password' cannot be loaded的报错.百度过后知道是因为MySQL8采用了caching_sha2_password的加密方式,需要改回旧的mysql_native_password,在此附上修改方法: mysql -u root -p password >ALTER USER 'root'@'localhost' IDENTIFIED BY 'passwo

MySQL刚安装完,连接的时候 连接出现 Authentication plugin 'caching_sha2_password' cannot be loaded

很多用户在使用Navicat Premium 12连接MySQL数据库时会出现Authentication plugin 'caching_sha2_password' cannot be loaded的错误. 出现这个原因是mysql8 之前的版本中加密规则是mysql_native_password,而在mysql8之后,加密规则是caching_sha2_password, 解决问题方法有两种,一种是升级navicat驱动,一种是把mysql用户登录密码加密规则还原成mysql_nativ

MySQL 连接出现 Authentication plugin 'caching_sha2_password' cannot be loaded

很多用户在使用Navicat Premium 12连接MySQL数据库时会出现Authentication plugin 'caching_sha2_password' cannot be loaded的错误,解决方法如下 1. 管理员权限运行命令提示符,登陆MySQL(记得添加环境变量) mysql -u root -p password:                                                                         #登入my

MySQL Authentication plugin 'caching_sha2_password' cannot be loaded

很多用户在使用Navicat Premium 12连接MySQL数据库时会出现Authentication plugin 'caching_sha2_password' cannot be loaded的错误,解决方法如下 1. 管理员权限运行命令提示符,登陆MySQL mysql -u root -p password                                                                         #登入mysql 2. 修改账户

mysql 无法连接提示 Authentication plugin 'caching_sha2_password' cannot be loaded

mysql 无法连接提示 Authentication plugin 'caching_sha2_password' cannot be loaded 可能是密码没有设置或者,密码设置类型不符,可参考如下步骤解决 1 查看当前账户,和密码 select user,host,password from user; 或者是否设置了authentication_string select user,host,authentication_string,plugin from mysql.user; 2

Authentication plugin 'caching_sha2_password' cannot be loaded错误处理

使用Navicat建立新连接时,遇到Authentication plugin 'caching_sha2_password' cannot be loaded错误: 解决方法如下: 打开mysql: 输入命令: ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER;   #修改加密规则 ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_nat