Home > Database > Mysql Tutorial > body text

How to cancel password strength verification in MySql

一个新手
Release: 2019-02-26 16:10:01
Original
3642 people have browsed it

1. Modify the MySql configuration file (my.cnf)

Recommended related mysql video tutorials: "mysql tutorial"

Generally, the MySql configuration file my.cnf will be in the /etc/ directory. If not, you can use the following command to find the location:

$ sudo find / -name my.cnf
Copy after login

Edit the configuration file:

$ sudo vi /etc/my.cnf
Copy after login

Add the following content at the end of the file:

plugin-load=validate_password.so 
validate-password=OFF
Copy after login

Save and exit

2. Restart the mysqld service

Restart the service to make the configuration file take effect:

$ sudo service mysqld restart
Copy after login

3. Log in to mysql to verify

Use the command to log in to verify whether the configuration file is valid:

$ mysql -u用户名 -p密码
Copy after login

Feel free to change it to a simple password and check whether it is successful. The command will not be written out

The above is the detailed content of How to cancel password strength verification in MySql. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!