Your password does not satisfy the current policy requirements

后端 未结 19 2646
眼角桃花
眼角桃花 2020-12-12 08:33

I want to create a new user in mysql with syntax:

create user \'demo\'@\'localhost\' identified by \'password\';

But it returns an error: <

19条回答
  •  青春惊慌失措
    2020-12-12 09:19

    NOTE: This might not be a secure solution. But if you are working on a test environment, just need a quick fix and doesn't even care about the security settings. This is a quick solution.

    The same issue happened to me when I ran "mysql_secure_installation" and modified password security level to 'medium'.

    I bypassed the error by running the followings:

    mysql -h localhost -u root -p
    mysql>uninstall plugin validate_password;
    

    make sure you reinstall the plugin "validate_password" if necessary.

提交回复
热议问题