如何在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

相关文章

最近做自动化测试时,深感自己对前端涉猎太少,加上对这块比...
homebrew本身就是一个git仓库。使用homebrew安装软件包时,会...
一、Homebrew安装、卸载等命令Homebrew的安装和卸载都非常简...
在mac系统中,使用homebrew可以很方便的管理包。按照官网的说...
我按照说明从这里使用brew安装mysqlhttps://gist.github.com...
我在macOS10.12.4上安装了nginx1.10.3和php5.5.38作为开发服...