MySQL -- password reset

reset Password:

1) Stop the mysql service and run and enter services.msc to stop the mysql service or cmd --> net stop mysql
2) Enter mysqld --skip-grant-tables in cmd to start the server and the cursor does not move (do not close the window)
3) New open cmd enter mysql -u root -p without password
    use mysql;
    update user set password=password('abc') WHERE User='root';
4) Close the two cmd windows and end the mysqld process in the task manager
5) In the service Restart the mysql service on the management page

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326498592&siteId=291194637