2023-0704-mysql 创建用户的时候提示密码太简单 Posted on 2023-07-04 Edited on 2024-03-04 mysql 创建用户的时候提示密码太简单 12mysql> CREATE USER 'hardoop'@'%' IDENTIFIED BY '123456';ERROR 1819 (HY000): Your password does not satisfy the current policy requirements 123456789101112mysql> SHOW VARIABLES LIKE 'validate_password%';+--------------------------------------+--------+| Variable_name | Value |+--------------------------------------+--------+| validate_password.check_user_name | ON || validate_password.dictionary_file | || validate_password.length | 8 || validate_password.mixed_case_count | 1 || validate_password.number_count | 1 || validate_password.policy | MEDIUM || validate_password.special_char_count | 1 |+--------------------------------------+--------+ 123456789101112mysql> SET GLOBAL validate_password.length = 6;Query OK, 0 rows affected (0.00 sec)mysql> SET GLOBAL validate_password.number_count = 0;Query OK, 0 rows affected (0.00 sec)mysql> SET GLOBAL validate_password.policy = 0;Query OK, 0 rows affected (0.00 sec)mysql> CREATE USER 'hardoop'@'%' IDENTIFIED BY '123456';Query OK, 0 rows affected (0.00 sec)