Created
January 23, 2012 18:32
-
-
Save maciakl/1664704 to your computer and use it in GitHub Desktop.
Reset MySQL Password on Ubuntu
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
# Stop MySQL | |
sudo /etc/init.d/mysql stop | |
# Start MySQL skipping checks | |
sudo mysqld --skip-grant-tables & | |
# Log in as root | |
mysql -u root mysql | |
# Reset password | |
UPDATE user SET password=PASSWORD('NEWPASSWORD') WHERE user='root'; | |
FLUSH PRIVILEGES; | |
exit; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment