表的密钥文件不正确,尝试修复它?

时间:2014-04-11 01:47:53

标签: mysql unix

我们在mysql服务器之一得到以下错误消息,从这个消息我不明白哪个表被破坏了。 我们正在为这台服务器使用mysql 5.5.36版本。

错误信息是:

140410 18:15:01 [ERROR] /usr/local/mysql-5.5.36-linux2.6-x86_64/bin/mysqld: Incorrect key file for table '/var/tmp/#sql_4b24_1.MYI'; try to repair it
140410 18:15:01 [ERROR] Got an error from unknown thread, /pb2/build/sb_0-11244937-1389687661.25/mysql-5.5.36/storage/myisam/mi_write.c:226
140410 18:15:01 [ERROR] /usr/local/mysql-5.5.36-linux2.6-x86_64/bin/mysqld: Incorrect key file for table '/var/tmp/#sql_4b24_8.MYI'; try to repair it
140410 18:15:01 [ERROR] Got an error from unknown thread, /pb2/build/sb_0-11244937-1389687661.25/mysql-5.5.36/storage/myisam/mi_write.c:226
140410 18:15:01 [ERROR] /usr/local/mysql-5.5.36-linux2.6-x86_64/bin/mysqld: Incorrect key file for table '/var/tmp/#sql_4b24_11.MYI'; try to repair it
140410 18:15:01 [ERROR] /usr/local/mysql-5.5.36-linux2.6-x86_64/bin/mysqld: Incorrect key file for table '/var/tmp/#sql_4b24_15.MYI'; try to repair it
140410 18:15:01 [ERROR] Got an error from unknown thread, /pb2/build/sb_0-11244937-1389687661.25/mysql-5.5.36/storage/myisam/mi_write.c:226
140410 18:15:01 [ERROR] Got an error from unknown thread, /pb2/build/sb_0-11244937-1389687661.25/mysql-5.5.36/storage/myisam/mi_write.c:226

1 个答案:

答案 0 :(得分:0)

尝试在启动时使用配置文件中的变量自动修复所有myisam表。

参考链接:

https://dev.mysql.com/doc/refman/5.0/en/server-options.html#option_mysqld_myisam-recover