Created
July 13, 2011 06:33
-
-
Save Amitesh/1079829 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
Reset Mysql root password | |
$ sudo stop mysql | |
$ sudo start mysql | |
$ mysql -u root | |
mysql> SET PASSWORD FOR root@'localhost' = PASSWORD('a_real_pwd'); | |
mysql> exit | |
bye | |
try : mysql -uroot -p | |
update mysql.user set Password = Password('yourpassword') where user = 'root'; | |
Read this post | |
https://help.ubuntu.com/community/MysqlPasswordReset |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment