Created
November 26, 2017 13:03
-
-
Save nunenuh/878ca6286b2edd005c16f6105c441902 to your computer and use it in GitHub Desktop.
How To Repair Lost Password MySQL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| service mysql stop | |
| mysqld_safe --skip-grant-tables & | |
| mysql -u root | |
| mysql>use mysql; | |
| mysql>update user set password=PASSWORD("a") where User='root'; | |
| mysql>flush privileges; | |
| mysql>quit; | |
| service mysql stop | |
| service mysql start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment