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

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

我收到错误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

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'

答案1

这个帖子

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

相关内容