连接MySQL错误“plugin caching_sha2_password could not be loaded”的解决办法

MySQL新版默认使用caching_sha2_password作为身份验证插件,而旧版是使用mysql_native_password。
当连接MySQL时报错“plugin caching_sha2_password could not be loaded”时,可换回旧版插件。

mysql -hlocalhost -uroot -p123456 //进入数据库
use mysql;
ALTER USER [email protected] IDENTIFIED WITH mysql_native_password BY ‘123456‘; //123456是密码
FLUSH PRIVILEGES

原文地址:https://www.cnblogs.com/maluscalc/p/10840162.html

时间: 2024-08-01 02:49:31

连接MySQL错误“plugin caching_sha2_password could not be loaded”的解决办法的相关文章

SQLyog连接数据库 提示错误plugin caching_sha2_password could not be loaded

1.打开mysql cmd 2.执行语句 ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER; #修改加密规则 ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; #更新一下用户的密码 FLUSH PRIVILEGES; #刷新权限 alter user 'root'@'localh

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的错误. 出现这个原因是mysql8 之前的版本中加密规则是mysql_native_password,而在mysql8之后,加密规则是caching_sha2_password, 解决问题方法有两种,一种是升级navicat驱动,一种是把mysql用户登录密码加密规则还原成mysql_nativ

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

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. 修改账户

navicat连接异常 authentication plugin 'caching_sha2_password' 问题解决

原文地址:https://blog.csdn.net/m290345792/article/details/88316962 https://blog.csdn.net/hello_world_qwp/article/details/79551789 这是密码策略问题 解决办法 查看mysql初始密码策略 navicat连接异常 authentication plugin 'caching_sha2_password' 问题解决 原文地址:https://www.cnblogs.com/liu1

解决远程连接mysql错误1130

Mysql远程连接Mysql服务器的数据库,错误代码是1130,ERROR 1130: Host xxx.xxx.xxx.xxx  is not allowed to connect to this MySQL server  猜想是无法给远程连接的用户权限问题. 这样子操作mysql库,即可解决.  在本机登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localhost"改称

解决远程连接mysql错误1130(转载)

解决远程连接mysql错误1130 远程连接Mysql服务器的数据库,错误代码是1130,ERROR 1130: Host xxx.xxx.xxx.xxx  is not allowed to connect to this MySQL server  猜想是无法给远程连接的用户权限问题. 这样子操作mysql库,即可解决. 在本机登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"local

spring boot 连接mysql 错误The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one

1.spring boot 整合mybatis 连接mysql时错误 The server time zone value '?D1ú±ê×?ê±??' is unrecognized or represents more than one 2.解决: jdbc:mysql://localhost:3306/new_schema?useSSL=false&serverTimezone=GMT%2B8 在地址后面加上 &serverTimezone=GMT%2B8%2B是+号的意思,这个意思