ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client

node 连接数据库时报的错误。

mysql8.0以上加密方式,Node还不支持。

mysql> alter user 'root'@'localhost' identified with mysql_native_password by '1234';

mysql> flush privileges;
posted @ 2020-02-18 15:25  进阶的哈姆雷特  阅读(181)  评论(0编辑  收藏  举报