Created
November 19, 2011 11:36
-
-
Save gabrielstuff/1378751 to your computer and use it in GitHub Desktop.
This little snippet helps to reset mysql root password
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
$ ps -ax | |
$ #Kill all the related mysql process and direct run the next lines# | |
$ sudo /usr/local/mysql/bin/mysqld_safe --user=mysql --skip-grant-tables --skip-networking & | |
#direct log after execute bellow command# | |
$ mysql -u root | |
mysql > database mysql; | |
mysql > UPDATE mysql.user SET password=PASSWORD('nouveau') WHERE user='root'; | |
# you are now happy :) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment