MySQL 8 Your password does not satisfy the current policy requirements

When transferring a website from one Cpanel server to another server running MySQL 8, I got the following error message

The error is due to validate_password component.

https://dev.mysql.com/doc/mysql-secure-deployment-guide/8.0/en/secure-deployment-password-validation.html

Method 1

Edit mysql configuration file, add following under [mysqld] section.

Policy 0 is LOW, default value is 1, that is MEDIUM.

Restart MySQL

Method 2: Disable Password Validation Component

To check if MySQL Password Validation Component is enabled, run the command

If you have Password Validation Component enabled, you will see

To disable the component, run

Back to MySQL 8

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *