如何在Mavericks / Mac(10.9.2)上正确安装MySQL?

我花了一夜之间让我的Mac上运行
mysql.我陷入了以下循环:

iMAC:~ admin$brew install mysql
Warning: mysql-5.6.16 already installed

iMAC:~ admin$mysql.server start
Starting MySQL
. ERROR! The server quit without updating PID file (/usr/local/var/mysql/iMAC.local.pid).

iMAC:~ admin$mysql.server restart
 ERROR! MySQL server PID file could not be found!
Starting MySQL
. ERROR! The server quit without updating PID file (/usr/local/var/mysql/iMAC.local.pid).

iMAC:~ admin$launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
homebrew.mxcl.mysql: Already loaded

iMAC:~ admin$brew uninstall mysql
Uninstalling /usr/local/Cellar/mysql/5.6.16...
Error: Permission denied - /usr/local/Cellar/mysql/5.6.16

iMAC:~ admin$brew uninstall mysql --force
Uninstalling mysql...
Error: Permission denied - /usr/local/Cellar/mysql/5.6.16

任何线索如何使其工作?

最佳答案 这些问题似乎相关,那里的答案可能对您有所帮助:

> PID error on mysql.server start?
> After MySQL install via Brew, I get the error – The server quit without updating PID file

点赞