问题 使用的环境是CentOS7,之前装了MySQL5.7隔了几天没用,再使用出错,尝试重启,出现如下提示: ERROR! MySQL server PID file could not be found! Starting MySQL... ERROR! The server quit without updating PID file (/wydxry/mysql5.7/data/localhost.localdomain.pid). 解决方式 尝试了许多方法,发现最简单粗暴的方法是删除/etc/my.conf文件 sudo rm -rf /etc/my.cnf 成功解决,如下图所示