当前位置:网站首页>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:13:00 【drhrht】
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、 完成修改,成功连接
先自我介绍一下,小编13年上师交大毕业,曾经在小公司待过,去过华为OPPO等大厂,18年进入阿里,直到现在。深知大多数初中级java工程师,想要升技能,往往是需要自己摸索成长或是报班学习,但对于培训机构动则近万元的学费,着实压力不小。自己不成体系的自学效率很低又漫长,而且容易碰到天花板技术停止不前。因此我收集了一份《java开发全套学习资料》送给大家,初衷也很简单,就是希望帮助到想自学又不知道该从何学起的朋友,同时减轻大家的负担。添加下方名片,即可获取全套学习资料哦
边栏推荐
- Asser uses ant sword to log in
- Dry goods | 4 tips for MySQL performance optimization
- Restricted character bypass
- 神经网络(ANN)
- DNS resolution process [visit website]
- 47. 【Pointers and Arrays】
- 网络常用的状态码
- 360核心安全大脑3.0正式发布,构建政企用户的“能力中枢平台”
- Unity 加载读取PPT
- Chevrolet Trailblazer, the first choice for safety and warmth for your family travel
猜你喜欢
随机推荐
[Meng Xin problem solving] Delete the Nth node from the bottom of the linked list
How to adjust Chinese in joiplay simulator
WebServer process explanation (registration module)
The first level must project independently
Necessary artifacts - AKShare quants
HCIP第十五天笔记
Data cleaning - ingest using es
MPI简谈
Word文件损坏如何修复
In MySQL, the stored procedure cannot realize the problem of migrating and copying the data in the table
Android security optimization - APP reinforcement
registers (assembly language)
Axure轮播图
An easy-to-use interface testing tools - the Postman
VSCode高效开源神器有哪些
How to use joiplay emulator
【VisDrone数据集】YOLOV3训练VisDrone数据集步骤与结果
[Deep learning] Detailed explanation of Transformer model
mysql中关于存储过程无法实现迁移复制表中数据问题
一款好用的接口测试工具——Postman