MySQL forget the password how to do?

1. Set the password in the configuration file canceled

we / etc / my.cnf

2. In the end, add the following command to open the configuration file

skip-grant-tables 

3. Then restart mysqld, this time directly after the restart password-free

Guess you like

Origin www.cnblogs.com/yishan9012/p/11313660.html