当前位置:网站首页>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
边栏推荐
- 自动机器学习框架介绍与使用(flaml、h2o)
- Django运行报错:Error loading MySQLdb module解决方法
- [BMZCTF-pwn] 11-pwn111111
- Mysql 其他主机无法连接本地数据库
- CSDN问答模块标题推荐任务(一) —— 基本框架的搭建
- Csdn-nlp: difficulty level classification of blog posts based on skill tree and weak supervised learning (I)
- API learning of OpenGL (2002) smooth flat of glsl
- 打开浏览器的同时会在主页外同时打开芒果TV,抖音等网站
- Introduction and use of automatic machine learning framework (flaml, H2O)
- IDEA 导入导出 settings 设置文件
猜你喜欢
![[download app for free]ineukernel OCR image data recognition and acquisition principle and product application](/img/1b/ed39a8b9181660809a081798eb8a24.jpg)
[download app for free]ineukernel OCR image data recognition and acquisition principle and product application

A trip to Macao - > see the world from a non line city to Macao

Copie maître - esclave MySQL, séparation lecture - écriture

安装numpy问题总结

Use dapr to shorten software development cycle and improve production efficiency

打开浏览器的同时会在主页外同时打开芒果TV,抖音等网站

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

【博主推荐】SSM框架的后台管理系统(附源码)

引入了junit为什么还是用不了@Test注解

Picture coloring project - deoldify
随机推荐
PyCharm中无法调用numpy,报错ModuleNotFoundError: No module named ‘numpy‘
Windows cannot start the MySQL service (located on the local computer) error 1067 the process terminated unexpectedly
Solve the problem that XML, YML and properties file configurations cannot be scanned
Windows下安装MongDB教程、Redis教程
Classes in C #
Postman Interface Association
Kubesphere - deploy the actual combat with the deployment file (3)
虚拟机Ping通主机,主机Ping不通虚拟机
SSM integrated notes easy to understand version
一键提取pdf中的表格
There are three iPhone se 2022 models in the Eurasian Economic Commission database
Remember a company interview question: merge ordered arrays
报错解决 —— io.UnsupportedOperation: can‘t do nonzero end-relative seeks
[BMZCTF-pwn] 11-pwn111111
[C language foundation] 04 judgment and circulation
QT creator create button
[recommended by bloggers] C WinForm regularly sends email (with source code)
CSDN question and answer tag skill tree (II) -- effect optimization
API learning of OpenGL (2005) gl_ MAX_ TEXTURE_ UNITS GL_ MAX_ TEXTURE_ IMAGE_ UNITS_ ARB
Introduction to the easy copy module