LoginSignup
8
5

More than 5 years have passed since last update.

ERROR 1819 (HY000): Your password does not satisfy the current policy requirements

Last updated at Posted at 2017-08-03

mysqlのパスワードを設定したときのエラー

mysql>create user xxx identified by 'aaa'
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements

原因

MySQL 5.7.8以降のrpmパッケージではvalidate_passwordプラグインがデフォルトで有効になっているため.
ちなみに,デフォルトの条件が最低1つの数値文字を含み、1つの小文字および大文字を含み、1 つの特殊文字 (英数字以外) を含んでいることとのこと.

解決策

validate_passwordを削除する.

mysql> uninstall plugin validate_password;

その後

mysql> SHOW VARIABLES LIKE 'validate_password%';
Empty set (0.00 sec)

これでどんなパスワードでも大丈夫(セキュリティ上あまりよろしくないが)

参考リンク

初心者のきまぐれメモ

8
5
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
8
5