Your password does not satisfy the current policy requirements

后端 未结 19 2653
眼角桃花
眼角桃花 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:18

    Step 1: check your default authentication plugin

    SHOW VARIABLES LIKE 'default_authentication_plugin';
    

    Step 2: veryfing your password validation requirements

    SHOW VARIABLES LIKE 'validate_password%';
    

    Step 3: setting up your user with correct password requirements

    CREATE USER ''@'localhost' IDENTIFIED WITH '' BY 'password';
    

提交回复
热议问题