当前位置:网站首页>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
边栏推荐
- 报错解决 —— io.UnsupportedOperation: can‘t do nonzero end-relative seeks
- PyCharm中无法调用numpy,报错ModuleNotFoundError: No module named ‘numpy‘
- 基于apache-jena的知识问答
- 【博主推荐】SSM框架的后台管理系统(附源码)
- frp内网穿透那些事
- JDBC原理
- Copy constructor template and copy assignment operator template
- C language advanced pointer Full Version (array pointer, pointer array discrimination, function pointer)
- 引入了junit为什么还是用不了@Test注解
- API learning of OpenGL (2003) gl_ TEXTURE_ WRAP_ S GL_ TEXTURE_ WRAP_ T
猜你喜欢

一键提取pdf中的表格

Why can't I use the @test annotation after introducing JUnit

MySQL20-MySQL的数据目录
![[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)

图像识别问题 — pytesseract.TesseractNotFoundError: tesseract is not installed or it‘s not in your path

CSDN question and answer module Title Recommendation task (II) -- effect optimization

02-项目实战之后台员工信息管理

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

Mysql22 logical architecture

Knowledge Q & A based on Apache Jena
随机推荐
Win10: how to modify the priority of dual network cards?
安全测试涉及的测试对象
QT creator shape
QT creator specify editor settings
Install MySQL for Ubuntu 20.04
Idea import / export settings file
[BMZCTF-pwn] 11-pwn111111
解决:log4j:WARN Please initialize the log4j system properly.
导入 SQL 时出现 Invalid default value for ‘create_time‘ 报错解决方法
虚拟机Ping通主机,主机Ping不通虚拟机
Armv8-a programming guide MMU (2)
Django运行报错:Error loading MySQLdb module解决方法
A trip to Macao - > see the world from a non line city to Macao
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
Copy constructor template and copy assignment operator template
报错解决 —— io.UnsupportedOperation: can‘t do nonzero end-relative seeks
Did you forget to register or load this tag 报错解决方法
Ubuntu 20.04 安装 MySQL
[recommended by bloggers] C # generate a good-looking QR code (with source code)
MySQL 20 MySQL data directory