具体报错如下:
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!