mysql show current password requirements code example

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

mysql> SET GLOBAL validate_password.policy=LOW;

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

+--------------------------------------+--------+
| 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      |
+--------------------------------------+--------+
7 rows in set (0.09 sec)

Tags:

Misc Example