In connection with node.js mysql8.0 version of Times a mistake
Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client
复制代码
Open cmd window under the window
- Enter the
mysql -h locahost -u root -p
command - Enter the password
- Entry
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '新密码';
Reproduced in: https: //juejin.im/post/5cf2948cf265da1ba25246ec