参考:
https://stackoverflow.com/a/18405032
状况
➜ ~ sudo /usr/local/Cellar/mysql/5.7.15/support-files/mysql.server restart [2:36:54]
ERROR! MySQL server PID file could not be found!
Starting MySQL
. ERROR! The server quit without updating PID file (/usr/local/var/mysql/XXX.local.pid).
解决
➜ /usr/local/var/mysql sudo chown -R _mysql /usr/local/var/mysql
➜ /usr/local/var/mysql sudo /usr/local/Cellar/mysql/5.7.15/support-files/mysql.server restart
ERROR! MySQL server PID file could not be found!
Starting MySQL
. SUCCESS!