使用Homebrew在Mountain Lion上安装MySQL

一、安装mysql

brew install mysql

二、开机启动mysql

brew info mysql

根据提示,设置开机启动

三、设置mysql开启和停止命令

alias mysql-stop='launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist'
alias mysql-start='launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist'
 
posted @ 2013-11-27 20:41  Martin2  阅读(226)  评论(0编辑  收藏  举报