当前位置:网站首页>连接MySQL数据库出现错误:2059 - authentication plugin ‘caching_sha2_password‘的解决方法
连接MySQL数据库出现错误:2059 - authentication plugin ‘caching_sha2_password‘的解决方法
2022-07-06 09:13:00 【As。】
原因分析:错误原因:MySQL新版本(8以上版本)的用户登录账户加密方式是【caching_sha2_password】,Navicat不支持这种用户登录账户加密方式。
1.首先我们需要打开MySQL 命令行客户端,如图所示,点击【MySQL 8.0 command line client】
2.输入自己安装MySQL时设置的密码,登录客户端,如图所示,表示登录成功
3.先查看一下加密的方式,命令:show variables like ‘default_authentication_plugin’;
4.查看本地mysql用户的信息,命令:select host,user,plugin from mysql.user;
5.由于Navicat不支持MySQL新版本的这种用户登录账户加密方式,所以下面我们要修改root账户的加密方式为【mysql_native_password】;命令:ALTER USER ‘root’@‘localhost’ IDENTIFIED WITH mysql_native_password BY ‘123456’; (注意:注意这里最后的root是你设置的root账户的密码,我设置的是“123456“)
6.最后重新打开Navicat连接MySQL即可成功
边栏推荐
- CSDN-NLP:基于技能树和弱监督学习的博文难度等级分类 (一)
- [BMZCTF-pwn] 12-csaw-ctf-2016-quals hungman
- Win10: how to modify the priority of dual network cards?
- Navicat 導出錶生成PDM文件
- MySQL22-逻辑架构
- Mysql34 other database logs
- MySQL 20 MySQL data directory
- windows无法启动MYSQL服务(位于本地计算机)错误1067进程意外终止
- FRP intranet penetration
- 虚拟机Ping通主机,主机Ping不通虚拟机
猜你喜欢
[recommended by bloggers] background management system of SSM framework (with source code)
Install mysql5.5 and mysql8.0 under windows at the same time
Unicode decodeerror: 'UTF-8' codec can't decode byte 0xd0 in position 0 successfully resolved
CSDN question and answer module Title Recommendation task (II) -- effect optimization
MySQL30-事务基础知识
Valentine's Day is coming, are you still worried about eating dog food? Teach you to make a confession wall hand in hand. Express your love to the person you want
Navicat 导出表生成PDM文件
Mysql30 transaction Basics
Swagger, Yapi interface management service_ SE
CSDN问答标签技能树(五) —— 云原生技能树
随机推荐
Win10: how to modify the priority of dual network cards?
Mysql21 user and permission management
API learning of OpenGL (2001) gltexgen
MySQL flush operation
Global and Chinese market of operational amplifier 2022-2028: Research Report on technology, participants, trends, market size and share
MySQL18-MySQL8其它新特性
Kubesphere - deploy the actual combat with the deployment file (3)
Bytetrack: multi object tracking by associating every detection box paper reading notes ()
[leectode 2022.2.13] maximum number of "balloons"
MySQL32-锁
Postman environment variable settings
35 is not a stumbling block in the career of programmers
Opencv uses freetype to display Chinese
Esp8266 at+cipstart= "", "", 8080 error closed ultimate solution
Invalid default value for 'create appears when importing SQL_ Time 'error reporting solution
[reading notes] rewards efficient and privacy preserving federated deep learning
Use of dataset of pytorch
csdn-Markdown编辑器
@controller,@service,@repository,@component区别
MySQL25-索引的创建与设计原则