navicat连接mysql8:2059 authentication plugin 'caching_sha2_passord' can not be loaded

今天在电脑上安装了mysql8.0,用navicat连接的时候出现了如下的错误:

这是因为mysql 8.0 默认使用 caching_sha2_password 身份验证机制 —— 从原来的 mysql_native_password 更改为 caching_sha2_password。 从 5.7 升级 8.0 版本的不会改变现有用户的身份验证方法,但新用户会默认使用新的 caching_sha2_password 。

解决方法如下:

使用mysql自带的 MySQL 8.0 Command Line Client - Unicode 登录,

然后使用命令:alter user ‘root‘@‘localhost‘ identified with mysql_native_password by ‘root‘;进行密码的更新;

Navicat再次连接,成功。

navicat连接mysql8:2059 authentication plugin 'caching_sha2_passord' can not be loaded

原文地址:https://www.cnblogs.com/sxy-code-blog/p/9192659.html

时间: 2024-08-25 01:06:12

navicat连接mysql8:2059 authentication plugin 'caching_sha2_passord' can not be loaded的相关文章

【问题记录】Navicat Premium连接mysql-8.0.17时出现2059 - Authentication plugin 'caching_sha2_password’....错误

问题描述: Navicat Premium连接mysql-8.0.17时出现2059 - Authentication plugin 'caching_sha2_password’ cannot be loaded:......错误 问题分析: mysql8 之前的版本中加密规则是mysql_native_password,而在mysql8之后,加密规则是caching_sha2_password. 解决办法: 1.登陆数据库:mysql - u root -p; 2.切换数据库:use mys

Navicat 连接MySQL数据库 报错2059 - authentication plugin 'caching_sha2_password'的解决办法

#在数据库的命令行中输入以下代码即可解决,密码必须要修改 可以再次执行将密码改回来. use mysql; ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; Navicat 连接MySQL数据库 报错2059 - authentication plugin 'caching_sha2_password'的解决办法 原文地址:https://www.cnblogs.com/liuha

navicat连接mysql8.0+版本报错2059

ERROR 2059 : Authentication plugin 'caching_sha2_password' cannot be loaded 问题: 连接Docker启动的mysql出现:ERROR 2059: Authentication plugin 'caching_sha2_password' cannot be loaded 问题出现原因: 在用navicat连接MySQL8+时会出现2059错误,这是由于新版本的MySQL使用的是caching_sha2_password验

Navicat连接MySQL8+时出现2059报错

当我们连接时,会报2059错误 在用navicat连接MySQL8+时会出现2059错误,这是由于新版本的MySQL使用的是caching_sha2_password验证方式,但此时的navicat还没有支持这种验证方式.解决方法就是将验证方式改为以前版本(5.7及以下)使用的验证方式mysql_native_password.具体的验证方式可以查看默认数据库'mysql'中user表plugin字段.在命令行中登录数据库时不会出现2059错误,在命令行中登录数据库,执行下面的命令. ALTER

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文件中,cac

Navicat连接MySQL8出现1251错误

安装MySQL8后用navicat连接时出现1251错误 解决办法 管理员打开cmd窗口 mysql     -uroot    -p登录mysql alter user [email protected] identified by'newpassword' password alter user [email protected] identified with mysql_native_password by 'newpassword' flush privileges; 原文地址:htt

Navicat连接MySQL报错2059 - authentication plugin caching_sha2_password”

问题背景 新安装的MySQL8.0.15,root密码设置的123456: 新安装的navicat; 出现问题 navicat连接数据库报错,如图: 解决办法 mysql -u root -p输入密码123456登录mysql,执行以下命令: ALTER USER 'root'@'localhost' IDENTIFIED BY '654321' PASSWORD EXPIRE NEVER; #修改加密规则 ALTER USER 'root'@'localhost' IDENTIFIED WIT

Navicat 连接mysql 报错: Authentication plugin caching_ sha2_password cannot be loaded

出现这个错误的时候, 网上的资料都是修改mysql的登录信息的, ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456'; FLUSH PRIVILEGES; 但我的试了好久都没有效果, 不知道是不是我通过docker安装mysql的缘故, 或者是mysql版本的缘故. 通过这个语句, select host, user, plugin from user; 我发现我的多了一个host为%的,

navicat连接MySQL8.0.11提示2059错误

错误原因:mysql加密规则的改变: mysql加密规则:mysql_native_password      mysql8之前的版本   caching_sha2_password     mysql8 解决方法: ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER; //修改加密规则 ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_na