Your password does not satisfy the current policy requirements

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

    didn't work for me on ubuntu fresh install of mysqld, had to add this: to /etc/mysql/mysql.conf.d/mysqld.cnf or the server wouldn't start (guess the plugin didn't load at the right time when I simply added it without the plugin-load-add directive)

    plugin-load-add=validate_password.so
    validate_password_policy=LOW
    validate_password_length=8
    validate_password_mixed_case_count=0
    validate_password_number_count=0
    validate_password_special_char_count=0
    

提交回复
热议问题