当前位置:网站首页>Error connecting to MySQL database: 2059 - authentication plugin 'caching_ sha2_ The solution of 'password'
Error connecting to MySQL database: 2059 - authentication plugin 'caching_ sha2_ The solution of 'password'
2022-07-06 11:09:00 【As。】
Cause analysis : The reason for the error :MySQL The new version (8 Above version ) The encryption method of user login account is 【caching_sha2_password】,Navicat This user login account encryption method is not supported .
1. First we need to open MySQL Command line client , As shown in the figure , Click on 【MySQL 8.0 command line client】
2. Enter your own installation MySQL The password set when , Log in to the client , As shown in the figure , Indicates successful login 
3. Check the encryption method first , command :show variables like ‘default_authentication_plugin’;
4. View local mysql User information , command :select host,user,plugin from mysql.user;
5. because Navicat I won't support it MySQL The new version of this user login account encryption , So next we need to modify root The encryption method of the account is 【mysql_native_password】; command :ALTER USER ‘root’@‘localhost’ IDENTIFIED WITH mysql_native_password BY ‘123456’; ( Be careful : Pay attention to the last root You set it up root Password of the account , What I set up is “123456“)
6. Finally reopen Navicat Connect MySQL You can succeed
边栏推荐
- Unable to call numpy in pycharm, with an error modulenotfounderror: no module named 'numpy‘
- Picture coloring project - deoldify
- Postman uses scripts to modify the values of environment variables
- Are you monitored by the company for sending resumes and logging in to job search websites? Deeply convinced that the product of "behavior awareness system ba" has not been retrieved on the official w
- Ubuntu 20.04 安装 MySQL
- Image recognition - pyteseract TesseractNotFoundError: tesseract is not installed or it‘s not in your path
- Yum prompt another app is currently holding the yum lock; waiting for it to exit...
- FRP intranet penetration
- JDBC principle
- A brief introduction to the microservice technology stack, the introduction and use of Eureka and ribbon
猜你喜欢

MySQL21-用戶與權限管理

QT creator specifies dependencies

Other new features of mysql18-mysql8

QT creator design user interface
![[recommended by bloggers] asp Net WebService background data API JSON (with source code)](/img/04/c721e6177b578b30cbbf334cb1b6c9.png)
[recommended by bloggers] asp Net WebService background data API JSON (with source code)

Mysql21 user and permission management

Solution: log4j:warn please initialize the log4j system properly

Deoldify项目问题——OMP:Error#15:Initializing libiomp5md.dll,but found libiomp5md.dll already initialized.

CSDN问答模块标题推荐任务(二) —— 效果优化

35 is not a stumbling block in the career of programmers
随机推荐
Windows下安装MongDB教程、Redis教程
One click extraction of tables in PDF
Some problems in the development of unity3d upgraded 2020 VR
记某公司面试算法题:查找一个有序数组某个数字出现的次数
解决:log4j:WARN Please initialize the log4j system properly.
[recommended by bloggers] asp Net WebService background data API JSON (with source code)
IDEA 导入导出 settings 设置文件
Idea import / export settings file
MySQL主从复制、读写分离
Swagger、Yapi接口管理服务_SE
QT creator design user interface
Ansible实战系列一 _ 入门
The virtual machine Ping is connected to the host, and the host Ping is not connected to the virtual machine
Have you mastered the correct posture of golden three silver four job hopping?
02-项目实战之后台员工信息管理
C语言标准的发展
CSDN question and answer tag skill tree (I) -- Construction of basic framework
数据库高级学习笔记--SQL语句
CSDN问答模块标题推荐任务(二) —— 效果优化
[recommended by bloggers] C MVC list realizes the function of adding, deleting, modifying, checking, importing and exporting curves (with source code)