LoginSignup
3

More than 5 years have passed since last update.

VSCodeでMySQLに接続する際のエラー対策

Posted at

VSCodeでMySQLに接続する際のエラー対策

VSCodeでMySQLに接続する際に以下のエラーが発生した。

Error:ER_NOT_SUPPORTER_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client

環境

  • VSCode:1.29.0-insider
  • MySQL:8.0.12
  • MySQL(Extensions of VSCode):0.3.0

対策

root権限でログインし、MySQLで以下のコマンドを実行する。
(""内は環境に応じて変更が必要)

ALTER USER "ユーザ名"@"ホスト名" IDENTIFIED WITH 'mysql_native_password' BY "パスワード";

GitHubのIssuesが上がっている。

参考サイト

https://hiroronn.hatenablog.jp/entry/20180627/1530104001

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
3