当前位置:网站首页>连接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即可成功
边栏推荐
- Global and Chinese market of transfer switches 2022-2028: Research Report on technology, participants, trends, market size and share
- Use of dataset of pytorch
- Navicat 导出表生成PDM文件
- MySQL29-数据库其它调优策略
- Swagger, Yapi interface management service_ SE
- MySQL主从复制、读写分离
- 解决扫描不到xml、yml、properties文件配置
- Swagger、Yapi接口管理服务_SE
- Global and Chinese market of operational amplifier 2022-2028: Research Report on technology, participants, trends, market size and share
- Ansible practical Series II_ Getting started with Playbook
猜你喜欢

Adaptive Bezier curve network for real-time end-to-end text recognition

【博主推荐】asp.net WebService 后台数据API JSON(附源码)

MySQL32-锁

Mysql21 - gestion des utilisateurs et des droits

MySQL23-存儲引擎

IDEA 导入导出 settings 设置文件

A brief introduction to the microservice technology stack, the introduction and use of Eureka and ribbon

MySQL19-Linux下MySQL的安装与使用
![[recommended by bloggers] C WinForm regularly sends email (with source code)](/img/5d/57f8599a4f02c569c6c3f4bcb8b739.png)
[recommended by bloggers] C WinForm regularly sends email (with source code)

CSDN问答模块标题推荐任务(二) —— 效果优化
随机推荐
MySQL completely uninstalled (windows, MAC, Linux)
FRP intranet penetration
February 13, 2022-3-middle order traversal of binary tree
解决扫描不到xml、yml、properties文件配置
MySQL 29 other database tuning strategies
Global and Chinese markets for aprotic solvents 2022-2028: Research Report on technology, participants, trends, market size and share
Global and Chinese market of wafer processing robots 2022-2028: Research Report on technology, participants, trends, market size and share
MySQL other hosts cannot connect to the local database
【博主推荐】C#MVC列表实现增删改查导入导出曲线功能(附源码)
Esp8266 at+cipstart= "", "", 8080 error closed ultimate solution
Mysql22 logical architecture
Global and Chinese market of transfer switches 2022-2028: Research Report on technology, participants, trends, market size and share
CSDN question and answer module Title Recommendation task (I) -- Construction of basic framework
1. Mx6u learning notes (VII): bare metal development (4) -- master frequency and clock configuration
Advantages and disadvantages of evaluation methods
Mysql21 user and permission management
Water and rain condition monitoring reservoir water and rain condition online monitoring
Have you mastered the correct posture of golden three silver four job hopping?
虚拟机Ping通主机,主机Ping不通虚拟机
The virtual machine Ping is connected to the host, and the host Ping is not connected to the virtual machine