Created
August 5, 2014 05:55
-
-
Save ryanjbonnell/8ee0d9ef64e38bb7f465 to your computer and use it in GitHub Desktop.
MySQL - Reset 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 /usr/local/mysql/support-files/mysql.server stop | |
$ sudo /usr/local/mysql/bin/mysqld_safe --skip-grant-tables --skip-networking & | |
mysql> UPDATE mysql.user SET Password=PASSWORD('') WHERE User='root'; | |
mysql> FLUSH PRIVILEGES; | |
mysql> exit | |
$ mysql -h localhost -u root | |
mysql> set password=password(''); | |
mysql> exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment