图文并茂解决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的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程