Q:node 连接 mysql8.0+版本报错“ MYSQL:ER_NOT_SUPPORTED_AUTH_MODE:Client does not support authentication protocol ”
A:进入mysql;执行下面代码:
`
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '自己的密码';`
`
R:8.0mysql引入了caching_sha2_password模块作为默认身份验证插件,nodejs还没有跟进