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

时间:2014-03-01 17:12:01

标签: mysql macos homebrew

我花了一夜之间让我的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

有关如何使其发挥作用的任何线索?

1 个答案:

答案 0 :(得分:2)