我管理一个使用Perch(grabaperch.com)构建的简化php内容管理系统的招聘网站。
我有一个奇怪的问题,而不是一个mysql专家 - 我不知道如何解决。每隔一段时间,数据库似乎都会大量膨胀 - 而且网站也会崩溃。当我看一下实际的数据库时,看起来好像工作已经自我复制了。
在mysql错误日志中发生了很多奇怪的事情 - 我在下面粘贴了一个片段 - 我希望有人可以让我知道可能出现的问题。
140805 8:28:38 [Warning] IP address '218.15.203.72' has been resolved to the host name '72.203.15.218.broad.yf.gd.dynamic.163data.com.cn', which resembles IPv4-address itself.
140805 8:43:03 [ERROR] /usr/sbin/mysqld: Incorrect key file for table '/tmp/#sql_34dc_46.MYI'; try to repair it
140805 8:43:03 [ERROR] Got an error from unknown thread, /build/buildd/mysql-5.5-5.5.37/storage/myisam/mi_write.c:226
140805 8:43:03 [ERROR] /usr/sbin/mysqld: Incorrect key file for table '/tmp/#sql_34dc_21.MYI'; try to repair it
140805 8:43:03 [ERROR] Got an error from unknown thread, /build/buildd/mysql-5.5-5.5.37/storage/myisam/mi_write.c:226
140805 8:43:03 [ERROR] /usr/sbin/mysqld: Incorrect key file for table '/tmp/#sql_34dc_2.MYI'; try to repair it
140805 8:43:03 [ERROR] Got an error from unknown thread, /build/buildd/mysql-5.5-5.5.37/storage/myisam/mi_write.c:226
140805 8:43:03 [ERROR] /usr/sbin/mysqld: Incorrect key file for table '/tmp/#sql_34dc_27.MYI'; try to repair it
140805 8:43:03 [ERROR] Got an error from unknown thread, /build/buildd/mysql-5.5-5.5.37/storage/myisam/mi_write.c:226
140805 8:43:03 [ERROR] /usr/sbin/mysqld: Incorrect key file for table '/tmp/#sql_34dc_49.MYI'; try to repair it
这重复了几次。
我在日志中也看到了很多以下内容......
---TRANSACTION 896F, not started flushing log
mysql tables in use 1, locked 1
MySQL thread id 664483, OS thread handle 0x7ffde480c700, query id 20002663 localhost formuser query end
UPDATE `form`.`user` SET sessiontoken = '53dfe99a2d7537.42615665', sessiontimestamp=NOW() WHERE username = '1961kjm@gmail.com'
我试过修理桌子,但没有多大区别。
有任何想法/建议吗?