当前位置:网站首页>连接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-Markdown编辑器
- MySQL23-存储引擎
- @Controller, @service, @repository, @component differences
- Mysql30 transaction Basics
- Moteur de stockage mysql23
- Just remember Balabala
- CSDN问答模块标题推荐任务(一) —— 基本框架的搭建
- CSDN question and answer tag skill tree (II) -- effect optimization
- Ansible practical Series II_ Getting started with Playbook
- Discriminant model: a discriminant model creation framework log linear model
猜你喜欢
IDEA 导入导出 settings 设置文件
CSDN问答模块标题推荐任务(一) —— 基本框架的搭建
【博主推荐】C#生成好看的二维码(附源码)
Mysql21 - gestion des utilisateurs et des droits
MySQL21-用戶與權限管理
MySQL 20 MySQL data directory
Mysql26 use of performance analysis tools
MySQL25-索引的创建与设计原则
MySQL 29 other database tuning strategies
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
随机推荐
MySQL26-性能分析工具的使用
Mysql32 lock
Postman Interface Association
MySQL22-逻辑架构
Install mysql5.5 and mysql8.0 under windows at the same time
35 is not a stumbling block in the career of programmers
Install MySQL for Ubuntu 20.04
Have you mastered the correct posture of golden three silver four job hopping?
Nanny hand-in-hand teaches you to write Gobang in C language
Swagger, Yapi interface management service_ SE
Other new features of mysql18-mysql8
February 13, 2022-3-middle order traversal of binary tree
MySQL21-用戶與權限管理
Swagger、Yapi接口管理服务_SE
Ansible实战系列三 _ task常用命令
Texttext data enhancement method data argument
Global and Chinese markets for aprotic solvents 2022-2028: Research Report on technology, participants, trends, market size and share
A brief introduction to the microservice technology stack, the introduction and use of Eureka and ribbon
[recommended by bloggers] background management system of SSM framework (with source code)
Mysql36 database backup and recovery