Based on the answer from Sharfi, edit the /etc/my.cnf file and add only one line:
validate_password_policy=LOW
This should sufficiently neutralize validation, as required by AF. You might want to restart mysqld after this change. Depending on your OS, it will look something like this:
sudo service mysqld restart
validate_password_policy accepts either 0, 1, or 2, or the words LOW, MEDIUM, and STRONG that correspond to these numbers. The default value is MEDIUM (1), which requires that passwords contain at least one uppercase letter, one lowercase letter, one digit and one special character, and the total password length is at least 8 characters. Changing to LOW, as I suggest here, will only check the length, which, if it has not been changed using other parameters, will check the length 8. If you want to reduce this length limit, you can also add validate_password_length to my.cnf.
For more information on levels and details, see MySQL Document .
For MySQL 8, the property has been changed from "validate_password_policy" to "validate_password.policy". See the updated MySQL documentation for the latest information.
ktbos Feb 28 '17 at 10:41 2017-02-28 10:41
source share