Help us understand the problem. What is going on with this article?

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

More than 1 year has passed since last update.

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

azmint
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away