MySQL启动报错The server quit without updating PID file

具体报错如下:
Starting MySQL
. ERROR! The server quit without updating PID file (/opt/homebrew/var/mysql/QdeMacBook-Pro.local.pid).

解决方案:

linux下:
sudo chmod -R 777 /usr/local/var/mysql/

重启:
systemctl restart mysqld

Mac:homebrew安装的。

chmod -R 777 /opt/homebrew/var/mysql

重启:
sudo mysql.server restart

ERROR! MySQL server PID file could not be found!
Starting MySQL
. SUCCESS!

你可能感兴趣的:(linux,-系统错误解决,mysql,运维,macos)