Mysql error connection

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 -pcommand
  • Enter the password
  • Entry ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '新密码';

Reproduced in: https: //juejin.im/post/5cf2948cf265da1ba25246ec

Guess you like

Origin blog.csdn.net/weixin_34088583/article/details/91439058