How do I turn off the mysql password validation?

后端 未结 13 1390
傲寒
傲寒 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 17:52

    I was having a problem on Ubuntu 18.04 on Mysql. When I needed to create a new user, the policy was always high.

    The way I figured out how to disable, for future colleagues who come to investigate, was set to low.

    Login to the mysql server as root

    mysql -h localhost -u root -p
    

    Set the new type of validation

    SET GLOBAL validate_password_policy=0; //For Low
    

    Restart mysql

    sudo service mysql restart
    

提交回复
热议问题