当前位置:网站首页>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-04-21 07:11:00 【畱䶒】
1、错误起因
使用vscode连接本机mysql的时候,报了这个错误。
Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client
2、错误原因
查找晚上的资料,说的是目前的数据库连接使用的node-mysql模块不符合新版的规则,所以会报出这个错误,那我们只需要修改旧的模块便可以解决问题了。
3、问题解决
3.1 使用终端进入数据库
首先使用你的终端程序进入到数据库,并输入你数据库的密码。
mysql -uroot -p
3.2 选择使用mysql库
use mysql;
3.3 查找user表中的user和host字段
select user,host from user;

3.4 修改指定用户
root是用户名,localhost是主机地址,后面的12345678是密码
alter user ‘root’@‘localhost’ identified with mysql_native_password by ‘12345678’;
4、 完成修改,成功连接

版权声明
本文为[畱䶒]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_44445809/article/details/124250290
边栏推荐
- Apache-Skywalking-SQL注入(CVE-2020-9483)复现
- “产业数字化”的技术背景与现实作用
- Build openwrt file system for i.mx6q development board
- Php article keyword replacement class
- VMware 16 newly installed win11 professional edition, unable to read the ISO image, unable to start the installer
- [2022dasctf x Su] Web replay of March spring challenge
- 【知行】浅谈Switch与If
- sys. stdin. ReadLine and readlines and input ()
- 2022-04-20: the small regiment goes to participate in the military training. The military training is coming to an end. The officer wants to divide n people in a row into m groups, and then ask each g
- 2022g3 boiler water treatment examination question bank and answers
猜你喜欢
随机推荐
Php article keyword replacement class
Execute rule after MySQL where condition
Win10 prompts that there is no mapping between account name and security ID
【2022DASCTF X SU】 三月春季挑战赛 web复现
IIC bus design ① - IIC communication protocol
[PROJECT] small hat takeout (VI)
nodejs链接redis
Database Experiment 1. Database creation and basic query
2022-04-20: the small regiment goes to participate in the military training. The military training is coming to an end. The officer wants to divide n people in a row into m groups, and then ask each g
torch中permute()函数用法补充内容(矩阵维度变化详细过程)
显示器选购参考天梯
Picture material free material picture material website picture material where to find some picture material download the purpose of picture material picture material product picture material website
动态规划--LC474.一和零
VMware16 新安装Win11专业版 ,无法读取ISO镜像无法启动安装程序
Question bank and answers of Electrical Engineering (elementary) examination in 2022
类与对象的详解(构造方法的详解)
2022年电工(初级)考试题库及答案
The listview column in C automatically adapts to the perfect effect of scaling
[image fusion] image fusion based on curvelet transform (evaluation index), including Matlab source code
Playwright click timeout attribute, the time to wait for the element to appear



![[PROJECT] small hat takeout (V)](/img/63/fcbb5a748fe0442443a4784dee5ae4.png)






