当前位置:网站首页>连接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即可成功
边栏推荐
- Copie maître - esclave MySQL, séparation lecture - écriture
- February 13, 2022-2-climbing stairs
- Invalid global search in idea/pychar, etc. (win10)
- [C language] deeply analyze the underlying principle of data storage
- 1. Mx6u learning notes (VII): bare metal development (4) -- master frequency and clock configuration
- CSDN question and answer module Title Recommendation task (I) -- Construction of basic framework
- C language string function summary
- Nanny hand-in-hand teaches you to write Gobang in C language
- MySQL21-用户与权限管理
- CSDN问答模块标题推荐任务(一) —— 基本框架的搭建
猜你喜欢
Mysql36 database backup and recovery
CSDN问答模块标题推荐任务(二) —— 效果优化
CSDN question and answer module Title Recommendation task (I) -- Construction of basic framework
Idea import / export settings file
Pytorch RNN actual combat case_ MNIST handwriting font recognition
Mysql32 lock
MySQL26-性能分析工具的使用
MySQL 29 other database tuning strategies
MySQL31-MySQL事务日志
csdn-Markdown编辑器
随机推荐
Copy constructor template and copy assignment operator template
SSM整合笔记通俗易懂版
MNIST implementation using pytoch in jupyter notebook
A brief introduction to the microservice technology stack, the introduction and use of Eureka and ribbon
[Li Kou 387] the first unique character in the string
FRP intranet penetration
Swagger、Yapi接口管理服务_SE
Water and rain condition monitoring reservoir water and rain condition online monitoring
Emotional classification of 1.6 million comments on LSTM based on pytoch
[C language] deeply analyze the underlying principle of data storage
@controller,@service,@repository,@component区别
[BMZCTF-pwn] 11-pwn111111
API learning of OpenGL (2004) gl_ TEXTURE_ MIN_ FILTER GL_ TEXTURE_ MAG_ FILTER
Global and Chinese markets of static transfer switches (STS) 2022-2028: Research Report on technology, participants, trends, market size and share
API learning of OpenGL (2003) gl_ TEXTURE_ WRAP_ S GL_ TEXTURE_ WRAP_ T
Installation and use of MySQL under MySQL 19 Linux
Navicat 导出表生成PDM文件
Invalid global search in idea/pychar, etc. (win10)
MySQL transaction log
Mysql35 master slave replication