Created
June 24, 2014 23:11
-
-
Save starkcoffee/dd926ad4acbefdf51f69 to your computer and use it in GitHub Desktop.
Restarting mysql on mac, resetting 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
> mysql.serverstop --skip-grant-tables | |
> mysql | |
mysql> UPDATE mysql.user SET Password=PASSWORD('PASSWORD') WHERE User='root'; | |
mysql> FLUSH PRIVILEGES; | |
mysql> exit; | |
> mysql.server stop | |
> mysql.server start | |
Sources: | |
http://robots.thoughtbot.com/starting-and-stopping-background-services-with-homebrew | |
http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment