Your password does not satisfy the current policy requirements

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

    SHOW VARIABLES LIKE 'validate_password%';

    mysql> SET GLOBAL validate_password.length = 6;

    mysql> SET GLOBAL validate_password.number_count = 0;

    mysql> SET GLOBAL validate_password.policy=LOW;

    SHOW VARIABLES LIKE 'validate_password%';

提交回复
热议问题