Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
1
Help us understand the problem. What are the problem?

More than 3 years have passed since last update.

posted at

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

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

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
1
Help us understand the problem. What are the problem?