Created
August 19, 2015 12:21
-
-
Save FabienSalles/362c749ec2335dfd091d to your computer and use it in GitHub Desktop.
Reset mysql root password
This file contains 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
sudo -i | |
/etc/init.d/mysql stop | |
mysqld_safe --skip-grant-tables & | |
mysql -u root mysql | |
update user set password=PASSWORD("mdp") where User='root'; | |
flush privileges; | |
exit; | |
killall mysqld | |
/etc/init.d/mysql start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment