Skip to content

Instantly share code, notes, and snippets.

@jpinnix
Created July 9, 2012 21:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpinnix/3079197 to your computer and use it in GitHub Desktop.
Save jpinnix/3079197 to your computer and use it in GitHub Desktop.
Install MySQL on Lion using Homebrew
$ 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