- MySQL8.0以降、認証プラグインは「caching_sha2_password」がデフォルト
作成済みのユーザの認証形式の変更
すでに作成しているユーザの認証プラグインの変更方法
-- caching_sha2_passwordを使用しないユーザーへ変更
alter user 'user'@'localhost' identified with mysql_native_password by 'password';
- 'user'にはユーザー名
- 'password'にはパスワード
すでに作成しているユーザの認証プラグインの変更方法
-- caching_sha2_passwordを使用しないユーザーへ変更
alter user 'user'@'localhost' identified with mysql_native_password by 'password';