当前位置:网站首页>Error ER_NOT_SUPPORTED_AUTH_MODE Client does not support authentication protocol requested by serv
Error ER_NOT_SUPPORTED_AUTH_MODE Client does not support authentication protocol requested by serv
2022-07-31 00:22:00 【drhrht】
1, cause of error
When using vscode to connect to the local mysql, this error was reported.
Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client2. Reason for error
Looking for the information at night, it said that the node-mysql module used by the current database connection does not conform to the rules of the new version, so this error will be reported, then we only need to modify the old module to solve the problem.
3. Problem solving
3.1 Use the terminal to enter the database
First go to the database using your terminal program and enter your database password.
mysql -uroot -p
3.2 Choose to use mysql library
use mysql;
3.3 Find the user and host fields in the user table
select user,host from user;

3.4 Modify Designated User
root is the username, localhost is the host address, followed by 12345678 is the password
alter user 'root'@'localhost' identified with mysql_native_password by '12345678';
4. Complete the modification and successfully connect

Let me introduce myself first. The editor graduated from Jiaotong University in 2013. I worked in a small company and went to big factories such as Huawei and OPPO. I joined Ali in 2018, until now.I know that most junior and intermediate java engineers want to upgrade their skills, they often need to explore their own growth or sign up to study, but for training institutions, the tuition fee is nearly 10,000 yuan, which is really stressful.Self-learning that is not systematic is very inefficient and lengthy, and it is easy to hit the ceiling and the technology stops.Therefore, I collected a "full set of learning materials for java development" for everyone. The original intention is also very simple. I hope to help friends who want to learn by themselves but don't know where to start, and at the same time reduce everyone's burden.Add the business card below to get a full set of learning materials
边栏推荐
猜你喜欢

(五)fastai应用

Summary of the stock problem of state machine dynamic programming

MySQL数据库面试题总结(2022最新版)

45.【list链表的应用】

寄存器(汇编语言)

Optimization of aggregate mentioned at DATA AI Summit 2022

加密传输过程

In-depth understanding of the auto-increment operator from two error-prone written test questions

正则表达式密码策略与正则回溯机制绕过

pytorch双线性插值
随机推荐
45.【list链表的应用】
限制字符绕过
[In-depth and easy-to-follow FPGA learning 14----------Test case design 2]
PHP图片添加文字水印
Learn Scope from a Compilation Perspective!
47.【指针与数组】
如何在WordPress网站上添加导航菜单
WEB安全基础 - - -漏洞扫描器
Shell script if statement
[Deep learning] Detailed explanation of Transformer model
Homework: iptables prevent nmap scan and binlog
ES 中时间日期类型 “yyyy-MM-dd HHmmss” 的完全避坑指南
A Brief Talk About MPI
[In-depth and easy-to-follow FPGA learning 13---------Test case design 1]
The difference between substring and substr in MySQL
MySQL系列一:账号管理与引擎
天空云变化案例
【深入浅出玩转FPGA学习14----------测试用例设计2】
WMware Tools安装失败segmentation fault解决方法
分布式系统的一致性与共识(1)-综述

