Created
July 6, 2015 14:52
-
-
Save cinco/77e51d9cc480a4e56b72 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 service mysql stop | |
sudo mysqld_safe --skip-grant-tables & | |
mysql -u root | |
use mysql; | |
update user set password=PASSWORD("mynewpassword") where User='root'; | |
flush privileges; | |
quit | |
### encerre o mysqld_safe e: | |
sudo service mysql start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment