Navicate连接MySQL出现2059-Authentication plugin 'caching_sha2_password' cannot be loaded:的解决方案

使用Navicate Premium12.0 连接MySql8.0出现2059-Authentication plugin ‘caching_sha2_password‘ cannot be loaded:的错误,解决方法如下

 1、打开MySQL 8.0 Command Line Client工具登陆到MySQL

2. 修改账户密码加密规则并更新用户密码

ALTER USER ‘登录名‘‘@‘localhost‘ IDENTIFIED BY ‘密码‘ PASSWORD EXPIRE NEVER;#修改加密规则

ALTER USER ‘登录名‘@‘localhost‘ IDENTIFIED WITH mysql_native_password BY ‘密码‘;   #更新一下用户的密码

注意:如果提示 Operation ALTER USER failed for ‘登录名‘‘@‘localhost‘ 

直接把localhost换成%即可

3. 刷新权限并重置密码

FLUSH PRIVILEGES;   #刷新权限

再重置下密码:alter user ‘登录名t‘@‘localhost‘ identified by ‘密码‘;

重新连接即可

Navicate连接MySQL出现2059-Authentication plugin 'caching_sha2_password' cannot be loaded:的解决方案

原文地址:https://www.cnblogs.com/nee32/p/11665876.html

时间: 2024-07-29 10:35:02

Navicate连接MySQL出现2059-Authentication plugin 'caching_sha2_password' cannot be loaded:的解决方案的相关文章

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'

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

【问题记录】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

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

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

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

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

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