MySQLエラー接続

タイムズのNode.jsのmysql8.0バージョンのミスに関連して、

    Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client
复制代码

窓の下にCMDウィンドウを開きます。

  • 入力mysql -h locahost -u root -pコマンドを
  • パスワードを入力します。
  • エントリー ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '新密码';

ます。https://juejin.im/post/5cf2948cf265da1ba25246ecで再現

おすすめ

転載: blog.csdn.net/weixin_34088583/article/details/91439058