How do I turn off the mysql password validation?

后端 未结 13 1518
傲寒
傲寒 2021-01-29 17:34

It seems that I may have inadvertently loaded the password validation plugin in MySQL 5.7. This plugin seems to force all passwords to comply to certain rules.

I would l

13条回答
  •  感动是毒
    2021-01-29 18:07

    You can configure this in mysql configuration file open /etc/my.cnf file In this file all the lines which is configuring the password policy make those commented like

    #validate-password=FORCE_PLUS_PERMANENT
    #validate_password_length=10
    #validate_password_mixed_case_count=1
    #validate_password_number_count=1
    #validate_password_policy=MEDIUM
    

    Uncomment and change the value of the properties you want to change.

提交回复
热议问题