LoginSignup
1
0

『mysql_native_password』周りで詰まった時の解決方法

Posted at

はじめに

下記エラーによってMySQLが起動しなくなった場合の解決方法を紹介します。

unknown variable 'default-authentication-plugin=mysql_native_password'.

解決方法

my.confを下記のように修正すればOK。

my.conf

 - default-authentication-plugin=mysql_native_password
 + mysql_native_password=ON

背景

複数のDockerコンテナでMySQLサーバーを起動していたので、ポート被り解消のためにポート番号を変えて起動しましたが上手くいかず。
記述を元に戻すと上記バグが発生しました。
バージョンをlatestで指定していたので、コンテナを再ビルドする際に使用バージョンが変わったのかもしれない。

おわりに

GPT4だけでなく、Google検索も並行して使った方が、より早く問題解決しますね。

参考

記事内の『Deprecation and Removal Notes』を参照

1
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
1
0