Created
July 9, 2012 21:43
-
-
Save jpinnix/3079197 to your computer and use it in GitHub Desktop.
Install MySQL on Lion using Homebrew
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
$ brew update | |
$ brew install mysql | |
$ mysql_install_db --verbose --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp | |
$ mkdir -p ~/Library/LaunchAgents | |
$ cp /usr/local/Cellar/mysql/5.5.25a/homebrew.mxcl.mysql.plist ~/Library/LaunchAgents/ | |
$ launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist | |
$ mysql -uroot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment