僕のYak Shavingは終わらない

車輪の再発明をやめたらそこには壮大なYakの群れが

MacにMySQL 5.6 をbrewでインストール

メモです。ちなみに僕の環境はLionです。
意外に簡単に5.6が入って超便利。

brew unlink mysql
brew install mysql
unset TMPDIR
mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
mysql.server start
mysql_secure_installation

brew install時のログはこんな感じ

» brew install mysql
Warning: It appears you have MacPorts or Fink installed.
Software installed with other package managers causes known problems for
Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again.
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/mysql-5.6.10.lion.bottle.tar.gz
######################################################################## 100.0%
<後略>

あとはお好きな様に。