当前位置:网站首页>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
边栏推荐
- Navicat 导出表生成PDM文件
- Principes JDBC
- C language advanced pointer Full Version (array pointer, pointer array discrimination, function pointer)
- Generate PDM file from Navicat export table
- When you open the browser, you will also open mango TV, Tiktok and other websites outside the home page
- Invalid global search in idea/pychar, etc. (win10)
- CSDN-NLP:基于技能树和弱监督学习的博文难度等级分类 (一)
- Dotnet replaces asp Net core's underlying communication is the IPC Library of named pipes
- [free setup] asp Net online course selection system design and Implementation (source code +lunwen)
- MySQL20-MySQL的数据目录
猜你喜欢
QT creator shape
Navicat 导出表生成PDM文件
API learning of OpenGL (2003) gl_ TEXTURE_ WRAP_ S GL_ TEXTURE_ WRAP_ T
windows下同时安装mysql5.5和mysql8.0
QT creator specify editor settings
Csdn-nlp: difficulty level classification of blog posts based on skill tree and weak supervised learning (I)
基于apache-jena的知识问答
CSDN问答模块标题推荐任务(二) —— 效果优化
【博主推荐】C# Winform定时发送邮箱(附源码)
MySQL18-MySQL8其它新特性
随机推荐
Postman environment variable settings
Mysql 其他主机无法连接本地数据库
学习问题1:127.0.0.1拒绝了我们的访问
Csdn-nlp: difficulty level classification of blog posts based on skill tree and weak supervised learning (I)
API learning of OpenGL (2005) gl_ MAX_ TEXTURE_ UNITS GL_ MAX_ TEXTURE_ IMAGE_ UNITS_ ARB
35 is not a stumbling block in the career of programmers
安装numpy问题总结
Summary of numpy installation problems
Solution: log4j:warn please initialize the log4j system properly
CSDN Q & a tag skill tree (V) -- cloud native skill tree
[recommended by bloggers] C MVC list realizes the function of adding, deleting, modifying, checking, importing and exporting curves (with source code)
Timestamp with implicit default value is deprecated error in MySQL 5.6
QT creator shape
Idea import / export settings file
报错解决 —— io.UnsupportedOperation: can‘t do nonzero end-relative seeks
Windows下安装MongDB教程、Redis教程
A trip to Macao - > see the world from a non line city to Macao
Kubesphere - deploy the actual combat with the deployment file (3)
CSDN question and answer tag skill tree (II) -- effect optimization
一键提取pdf中的表格