How do I turn off the mysql password validation?

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

    Further to the answer from ktbos:

    I modified the mysqld.cnf file and mysql failed to start. It turned out that I was modifying the wrong file!

    So be sure the file you modify contains segment tags like [mysqld_safe] and [mysqld]. Under the latter I did as suggested and added the line:

    validate_password_policy=LOW
    

    This worked perfectly to resolve my issue of not requiring special characters within the password.

提交回复
热议问题