How do I turn off the mysql password validation?

后端 未结 13 1259
傲寒
傲寒 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:06

    Here is what I do to remove the validate password plugin:

    1. Login to the mysql server as root mysql -h localhost -u root -p
    2. Run the following sql command: uninstall plugin validate_password;
    3. If last line doesn't work (new mysql release), you should execute UNINSTALL COMPONENT 'file://component_validate_password';

    I would not recommend this solution for a production system. I used this solution on a local mysql instance for development purposes only.

提交回复
热议问题