Installing MySQL on OS X Mountain Lion

http://bookmarks.kraksoft.pl/tag/mac-os-x/


unset TMPDIR
mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp

launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist