centos7启动MySQL时报错:MySQL server PID file could not be found!

启动MySQL时报错:
MySQL server PID file could not be found!
ERROR! The server quit without updating PID file(/var/lib/mysql/L1.id)

我用如下方法解决了这个问题:

sudo vim /etc/selinux/config

将SELINUX=enforcing改为disabled

在这里插入图片描述

然后重新启动虚拟机就好了。

猜你喜欢

转载自blog.csdn.net/weixin_43866709/article/details/88969524