重启mysql提示:The server quit without updating PID file问题的解决办法

时间:2023-03-08 19:30:03
重启mysql提示:The server quit without updating PID file问题的解决办法

今天因为需要开启事件调度器event_scheduler,所以修改了mysql的配置文件/etc/my.cnf

重启mysql提示:The server quit without updating PID file问题的解决办法

就因为配置多了个分号,导致一直启动失败,如下图所示:

重启mysql提示:The server quit without updating PID file问题的解决办法

然后去网上搜了帖子(MySQL提示:The server quit without updating PID file问题的解决办法http://www.jb51.net/article/48625.htm),按照里面几种提供的方案都不能解决,于是查看mysql错误日志

#tail -n 400 /lutong/mysql/error.log,发现event_scheduler一直报错,

重启mysql提示:The server quit without updating PID file问题的解决办法

于是去掉之前在配置文件中添加的event_scheduler=on后面的分号,再启动,成功

参考文章:

http://www.jb51.net/article/48625.htm