Skip to content

Instantly share code, notes, and snippets.

@djburdick
Last active December 11, 2015 18:49
Show Gist options
  • Save djburdick/4644705 to your computer and use it in GitHub Desktop.
Save djburdick/4644705 to your computer and use it in GitHub Desktop.
mac brew install mysql. #mysql
1. brew install mysql
2. mysql_install_db --verbose --user=`whoami` --basedir="$(brew
-prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
3. mysql.server start
To launch on startup:
* if this is your first install:
mkdir -p ~/Library/LaunchAgents
cp /usr/local/Cellar/mysql/5.5.27/homebrew.mxcl.mysql.plist ~/Library/LaunchAgents/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment