Created
May 16, 2012 15:15
-
-
Save braidn/2711119 to your computer and use it in GitHub Desktop.
Fixing Brew Mysql
This file contains hidden or 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
| brew install |
This file contains hidden or 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
| brew install mysql |
This file contains hidden or 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_install_db |
This file contains hidden or 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 chown -R 'whoami' /usr/local" |
This file contains hidden or 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
| CREATE USER 'root'@'localhost' IDENTIFIED BY 'YOUR_PASSWORD'; | |
| GRANT ALL PRIVILEGES ON TO 'root'@'localhost' | |
| WITH GRANT OPTION; | |
| CREATE USER 'root'@'%' IDENTIFIED BY 'YOUR_PASSWORD'; | |
| GRANT ALL PRIVILEGES ON TO 'root'@'%' | |
| WITH GRANT OPTION; | |
| CREATE USER 'admin'@'localhost'; | |
| GRANT RELOAD,PROCESS ON TO 'admin'@'localhost'; | |
| CREATE USER 'numbnuts'@'localhost'; |
This file contains hidden or 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
| mysqld_safe --skip-grant-tables |
This file contains hidden or 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
| launchctl unload -w ~/Library/LaunchAgents/com.mysql.mysqld.plist |
This file contains hidden or 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.server start | |
| mysql.server stop |
This file contains hidden or 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 -u root |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment