0
0

More than 1 year has passed since last update.

Node.jsからMySQLに接続する時に起きるエラーの対処法

Posted at

参考

エラー

MySQL 8.0 に接続するとエラーが起きる

[nodemon] app crashed - waiting for file changes before starting...
Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client

解決

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'ここにパスワードを入力';

更新するクエリ

flush privileges;

これらのクエリをMySQLで実行すれば解決

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0