How to crack the password of mysql database

1: Task Manager or Service Manager , turn off the mysqld ( service process )

2: Open mysqld through the command line + special parameters

Mysqld --skip-grant-tables

3: At this point , mysqld service process has been opened , and , do not need permission checks .

4: mysql -uroot  login to the server without password .

5: Modify the permission table

  A: use mysql;

  B:update user set Password = password('11111') where User = 'root';

  C:flush privileges;

6: Task Manager , or service management , turn off the mysqld service process .

7: Through the service management again , open the mysql service .

You can log in with the modified new password .

Guess you like

Origin blog.csdn.net/xiaoping117/article/details/41040339