当前位置:网站首页>连接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即可成功
边栏推荐
- Breadth first search rotten orange
- [recommended by bloggers] C MVC list realizes the function of adding, deleting, modifying, checking, importing and exporting curves (with source code)
- Isn't there anyone who doesn't know how to write mine sweeping games in C language
- Nanny hand-in-hand teaches you to write Gobang in C language
- CSDN markdown editor
- Global and Chinese market of transfer switches 2022-2028: Research Report on technology, participants, trends, market size and share
- windows无法启动MYSQL服务(位于本地计算机)错误1067进程意外终止
- Mysql27 - Optimisation des index et des requêtes
- Generate PDM file from Navicat export table
- Mysql25 index creation and design principles
猜你喜欢

windows下同时安装mysql5.5和mysql8.0

Mysql22 logical architecture

Invalid global search in idea/pychar, etc. (win10)

Case identification based on pytoch pulmonary infection (using RESNET network structure)

CSDN问答模块标题推荐任务(二) —— 效果优化
![[recommended by bloggers] C # generate a good-looking QR code (with source code)](/img/5a/1dbafe5a28f016b815964b9b37c9f1.jpg)
[recommended by bloggers] C # generate a good-looking QR code (with source code)
![[recommended by bloggers] C MVC list realizes the function of adding, deleting, modifying, checking, importing and exporting curves (with source code)](/img/b7/aae35f049ba659326536904ab089cb.png)
[recommended by bloggers] C MVC list realizes the function of adding, deleting, modifying, checking, importing and exporting curves (with source code)

Mysql21 - gestion des utilisateurs et des droits

Moteur de stockage mysql23

MySQL transaction log
随机推荐
February 13, 2022-3-middle order traversal of binary tree
[BMZCTF-pwn] 12-csaw-ctf-2016-quals hungman
Use of dataset of pytorch
Pytorch RNN actual combat case_ MNIST handwriting font recognition
Emotional classification of 1.6 million comments on LSTM based on pytoch
解决扫描不到xml、yml、properties文件配置
MySQL transaction log
SSM整合笔记通俗易懂版
MySQL33-多版本并发控制
frp内网穿透那些事
CSDN question and answer tag skill tree (II) -- effect optimization
Global and Chinese market of transfer switches 2022-2028: Research Report on technology, participants, trends, market size and share
La table d'exportation Navicat génère un fichier PDM
Global and Chinese market of thermal mixers 2022-2028: Research Report on technology, participants, trends, market size and share
Opencv uses freetype to display Chinese
[BMZCTF-pwn] 11-pwn111111
NPM an error NPM err code enoent NPM err syscall open
[recommended by bloggers] background management system of SSM framework (with source code)
MySQL主從複制、讀寫分離
A brief introduction to the microservice technology stack, the introduction and use of Eureka and ribbon