msyql重启异常(ERROR ... The server quit without updating PID file (/var/lib/mysql/Element.org.pid))(示例代码

Posted wllit

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了msyql重启异常(ERROR ... The server quit without updating PID file (/var/lib/mysql/Element.org.pid))(示例代码相关的知识,希望对你有一定的参考价值。

1. 出错的原因:由于需要定期清理日志表数据,只保留最近十天的数据,本来可以通过定时任务去执行,但是由于自己太懒想起来的时候手动delete,由于数据量过大导致删除持续时间太长,再加上日志表也是两个小时更新一次,当两种情况相遇时也就会导致lock table,一直处于等待中;当时等待了一个小时还没有反应,我手动kill了一些耗时进程还是不行,我就等不及手动重启mysql服务,这时就出问题了,一直报错:

   ERROR ... The server quit without updating PID file (/var/lib/mysql/Elements.org.pid)

2. 先说解决方案:

      移除mysql的配置文件: mv /etc/my.cnf /etc/my.cnf.bak

             /usr/local/share/mysql/mysql.server start   (具体路径根据自己的机器实的际情况写)

3. 我的问题是通过上面的方案顺利解决,不过对于类似的问题还有其他解决方案,如果上面的方法不行大家可以参考下面链接(下面的链接列举的方法对于我的情况都不管用):

      https://blog.csdn.net/zalion/article/details/9274263

 

以上是关于msyql重启异常(ERROR ... The server quit without updating PID file (/var/lib/mysql/Element.org.pid))(示例代码的主要内容,如果未能解决你的问题,请参考以下文章

在Linux上重启MySQL服务报错“Job for mysqld.service failed because the control process exited with error code“

在Ubuntu中使用MySQL错误:ERROR 1524 (HY000): Plugin 'msyql_native_password' is not loaded

储存数据至mysql数据库时出现 (1064, "You have an error in your SQL syntax; check the manual that correspond

已解决ERROR: pip’s dependency resolver does not currently take into account all the packages that are

Springboot异常--Identify and stop the process that‘s listening on port 9090 or configure this applicat

http启动(重启)报错:Job for httpd.service failed because the control process exited with error code.