開機自動啟動mysql.server
在Mac OSX中,快速設定開機自動啟動mysql.server
mkdir -p ~/Library/LaunchAgents cp `brew --prefix mysql`/homebrew.mxcl.mysql.plist
~/Library/LaunchAgents/ launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
plist文件名不一定是homebrew.mxcl.mysql.plist
,可下 $ brew --prefix mysql
,到目錄底下查看。