我收到错误“mysqld 已死但 pid 文件存在”

Mar*_*rio 5 mysql

我收到错误 mysqld dead but pid file exists

这种情况每隔几个小时就会发生一次。如果我重新启动它工作正常,然后再次下降。

[root@ip-10-0-0-149 log]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 7.8G 1.5G  6.3G   19% /
  devtmpfs 486M  56K  486M    1% /dev
     tmpfs 499M    0  499M    0% /dev/shm
Run Code Online (Sandbox Code Playgroud)

tail 给出:

140717 18:28:43 [ERROR] Got an error from thread_id=4432, /builddir/build/BUILD/ mysql-5.5.38/storage/myisam/mi_delete.c:121 
140717 18:28:43 [ERROR] MySQL thread id 4432, OS thread handle 0x7ff640688700, q uery id 269080 localhost root updating DELETE FROM wp_statistics_useronline WHERE timestamp < '1405621693' 
140717 18:28:43 [ERROR] Got error 134 when reading table './blog/wp_statistics_u seronline' 
140717 18:28:43 [ERROR] Got error 134 when reading table './blog/wp_statistics_u seronline' 
140717 18:28:43 [ERROR] /usr/libexec/mysqld: Incorrect key file for table './blo g/wp_statistics_useronline.MYI'; try to repair it 
140717 18:28:43 [ERROR] /usr/libexec/mysqld: Incorrect key file for table './blo g/wp_statistics_useronline.MYI'; try to repair it 
140717 18:28:43 [ERROR] Got an error from thread_id=4433, /builddir/build/BUILD/ mysql-5.5.38/storage/myisam/mi_delete.c:121 
140717 18:28:43 [ERROR] MySQL thread id 4433, OS thread handle 0x7ff64074b700, q uery id 269144 localhost root updating DELETE FROM wp_statistics_useronline WHERE timestamp < '1405621693'
Run Code Online (Sandbox Code Playgroud)

小智 1

请参阅此帖子

看来您需要REPAIR删除该表或将其恢复。