当前位置:网站首页>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
边栏推荐
- When you open the browser, you will also open mango TV, Tiktok and other websites outside the home page
- Picture coloring project - deoldify
- FRP intranet penetration
- Windows下安装MongDB教程、Redis教程
- 35 is not a stumbling block in the career of programmers
- [recommended by bloggers] asp Net WebService background data API JSON (with source code)
- 图片上色项目 —— Deoldify
- @Controller, @service, @repository, @component differences
- [free setup] asp Net online course selection system design and Implementation (source code +lunwen)
- 记某公司面试算法题:查找一个有序数组某个数字出现的次数
猜你喜欢
CSDN question and answer module Title Recommendation task (I) -- Construction of basic framework
Did you forget to register or load this tag 报错解决方法
MySQL主從複制、讀寫分離
[recommended by bloggers] C MVC list realizes the function of adding, deleting, modifying, checking, importing and exporting curves (with source code)
CSDN问答标签技能树(一) —— 基本框架的构建
Mysql21 - gestion des utilisateurs et des droits
MySQL19-Linux下MySQL的安装与使用
CSDN markdown editor
Django运行报错:Error loading MySQLdb module解决方法
API learning of OpenGL (2002) smooth flat of glsl
随机推荐
Ansible practical Series II_ Getting started with Playbook
[ahoi2009]chess Chinese chess - combination number optimization shape pressure DP
Summary of numpy installation problems
Ansible practical series I_ introduction
Solution: log4j:warn please initialize the log4j system properly
A brief introduction to the microservice technology stack, the introduction and use of Eureka and ribbon
CSDN blog summary (I) -- a simple first edition implementation
Neo4j installation tutorial
Ubuntu 20.04 安装 MySQL
[free setup] asp Net online course selection system design and Implementation (source code +lunwen)
Knowledge Q & A based on Apache Jena
02-项目实战之后台员工信息管理
Windows下安装MongDB教程、Redis教程
JDBC原理
SSM整合笔记通俗易懂版
Csdn-nlp: difficulty level classification of blog posts based on skill tree and weak supervised learning (I)
JDBC原理
LeetCode #461 汉明距离
QT creator specify editor settings
Basic use of redis