当前位置:网站首页>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
边栏推荐
- Encapsulate and obtain system user information, roles and permission control
- Asser uses ant sword to log in
- binglog log tracking: data backup and backup tracking
- MySQL中substring与substr区别
- How to ensure the consistency of database and cache data?
- software development design process
- Linux 部署mysql 5.7全程跟踪 完整步骤 django部署
- WMware Tools安装失败segmentation fault解决方法
- (5) fastai application
- Error occurred while trying to proxy request项目突然起不来了
猜你喜欢

.NET 跨平台应用开发动手教程 |用 Uno Platform 构建一个 Kanban-style Todo App

软件开发设计流程

Shell script if statement

MySQL的触发器

Steven Giesel recently published a 5-part series documenting his first experience building an application with the Uno Platform.
![DNS resolution process [visit website]](/img/58/ae9464dc714c4fcb958424ac134c99.png)
DNS resolution process [visit website]

MySQL grant statements

Mysql体系化之JOIN运算实例分析

【深入浅出玩转FPGA学习15----------时序分析基础】

Kotlin协程:协程上下文与上下文元素
随机推荐
怎么开通代付通道接口?
go mode tidy出现报错go warning “all“ matched no packages
MySql数据恢复方法个人总结
Shell脚本 if语句
【唐宇迪 深度学习-3D点云实战系列】学习笔记
【愚公系列】2022年07月 Go教学课程 013-常量、指针
Dry goods | 4 tips for MySQL performance optimization
PHP图片添加文字水印
How to import game archives in joiplay emulator
Mysql体系化之JOIN运算实例分析
How to ensure the consistency of database and cache data?
2D Transform Module && Media Queries
GO GOPROXY代理设置
Common network status codes
What are the efficient open source artifacts of VSCode
transition transition && animation animation
ES6中 async 函数、await表达式 的基本用法
Axure Carousel
[In-depth and easy-to-follow FPGA learning 14----------Test case design 2]
Error ER_NOT_SUPPORTED_AUTH_MODE Client does not support authentication protocol requested by serv

