图文并茂解决Client does not support authentication protocol requested by server; consider upgrading MySQL
2021/10/6 2:11:03
本文主要是介绍图文并茂解决Client does not support authentication protocol requested by server; consider upgrading MySQL,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
今天服务器部署node.js+mysql,调用接口报错ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client
查了一下资料,我改了两个地方
1.配置了服务器安全组策略,新增了3306端口
2.我修改mysql加密规则为普通模式,默认是严格加密模式
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '你的数据库密码';
操作步骤如下:然后重启node.js进行测试
大功告成~
欢迎路过的小伙伴们提出更好的方式
学无止境,合作共赢
这篇关于图文并茂解决Client does not support authentication protocol requested by server; consider upgrading MySQL的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-12-25如何部署MySQL集群资料:新手入门教程
- 2024-12-24MySQL集群部署资料:新手入门教程
- 2024-12-24MySQL集群资料详解:新手入门教程
- 2024-12-24MySQL集群部署入门教程
- 2024-12-24部署MySQL集群学习:新手入门教程
- 2024-12-24部署MySQL集群入门:一步一步搭建指南
- 2024-12-07MySQL读写分离入门:轻松掌握数据库读写分离技术
- 2024-12-07MySQL读写分离入门教程
- 2024-12-07MySQL分库分表入门详解
- 2024-12-07MySQL分库分表入门指南