The server quit without updateing PID file mysql

ERROR! The server quit without updateing PID file

环境:MAC

>> mysql -hlocalhost -uroot -p
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock'
# 这是因为mysql服务没有启动,所以执行下述命令
>> brew services start mysql
. ERROR! The server quit without updating PID file (/usr/local/var/mysql/xxx.pid).
这是因为mysql安装的有问题,卸载重装
>> sudo rm -rf /usr/local/var/mysql
>> brew reinstall mysql
>> mysql -uroot
©️2020 CSDN 皮肤主题: 编程工作室 设计师:CSDN官方博客 返回首页