MySQL突然启动失败

Jun 06 08:53:58 izwz97pafsy25cyhg6jiwsz systemd[1]: Starting LSB: start and stop MySQL…
Jun 06 08:53:59 izwz97pafsy25cyhg6jiwsz mysql[8955]: Starting MySQL.2019-06-06T00:53:59.419220Z mysqld_safe error: log-error set to ‘/var/…mysql’.
Jun 06 08:53:59 izwz97pafsy25cyhg6jiwsz mysql[8955]: The server quit without updating PID file (/data/mysqldata/3306/mysql.pid).[FAILED]
Jun 06 08:53:59 izwz97pafsy25cyhg6jiwsz systemd[1]: mysql.service: control process exited, code=exited status=1
Jun 06 08:53:59 izwz97pafsy25cyhg6jiwsz systemd[1]: Failed to start LSB: start and stop MySQL.
Jun 06 08:53:59 izwz97pafsy25cyhg6jiwsz systemd[1]: Unit mysql.service entered failed state.
Jun 06 08:53:59 izwz97pafsy25cyhg6jiwsz systemd[1]: mysql.service failed.

查找my.cnf

find / -name 'my.cnf*'

在这里插入图片描述
注意:我存放的配置是不在/etc下的,所以删除

rm /etc/my.cnf

因为 my.cnf.d实际是被my.cnf引用的,所以不用理它也行

在这里插入图片描述

你可能感兴趣的:(MySQL)