当前位置:网站首页>连接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即可成功
边栏推荐
- Mysql26 use of performance analysis tools
- Global and Chinese market of transfer switches 2022-2028: Research Report on technology, participants, trends, market size and share
- MySQL21-用户与权限管理
- Isn't there anyone who doesn't know how to write mine sweeping games in C language
- CSDN question and answer module Title Recommendation task (II) -- effect optimization
- Solution: log4j:warn please initialize the log4j system properly
- CSDN问答标签技能树(一) —— 基本框架的构建
- The virtual machine Ping is connected to the host, and the host Ping is not connected to the virtual machine
- SSM integrated notes easy to understand version
- API learning of OpenGL (2002) smooth flat of glsl
猜你喜欢

CSDN markdown editor

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

【博主推荐】C# Winform定时发送邮箱(附源码)

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

MySQL28-数据库的设计规范

Emotional classification of 1.6 million comments on LSTM based on pytoch

Csdn-nlp: difficulty level classification of blog posts based on skill tree and weak supervised learning (I)

【博主推荐】C#MVC列表实现增删改查导入导出曲线功能(附源码)
![[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)

Some problems in the development of unity3d upgraded 2020 VR
随机推荐
Esp8266 at+cipstart= "", "", 8080 error closed ultimate solution
【博主推荐】SSM框架的后台管理系统(附源码)
虚拟机Ping通主机,主机Ping不通虚拟机
Global and Chinese market of thermal mixers 2022-2028: Research Report on technology, participants, trends, market size and share
Ansible practical Series II_ Getting started with Playbook
【博主推荐】asp.net WebService 后台数据API JSON(附源码)
Pytorch RNN actual combat case_ MNIST handwriting font recognition
C language advanced pointer Full Version (array pointer, pointer array discrimination, function pointer)
windows下同时安装mysql5.5和mysql8.0
MySQL29-数据库其它调优策略
Isn't there anyone who doesn't know how to write mine sweeping games in C language
[BMZCTF-pwn] 11-pwn111111
Redis的基础使用
How to find the number of daffodils with simple and rough methods in C language
Breadth first search rotten orange
CSDN问答模块标题推荐任务(一) —— 基本框架的搭建
Mysql36 database backup and recovery
CSDN question and answer module Title Recommendation task (II) -- effect optimization
A brief introduction to the microservice technology stack, the introduction and use of Eureka and ribbon
windows无法启动MYSQL服务(位于本地计算机)错误1067进程意外终止