mysql 服务启动报错: ERROR! The server quit without updating PID file (/usr/local/var/mysql/XX.local.pid)
启动:
sudo mysql.server start
错误:
ERROR! MySQL server PID file could not be found!
Starting MySQL
. ERROR! The server quit without updating PID file (/usr/local/var/mysql/XXdeMacBook-Pro.local.pid).
解决:
1.输入命令:sudo chown -R _mysql /usr/local/var/mysql
2.再次重启:sudo mysql.server restart
XX@XXMacBook-Pro ~ % sudo mysql.server restart
ERROR! MySQL server PID file could not be found!
Starting MySQL
. SUCCESS!