MySQL:表被标记为崩溃


9

磁盘已满后,我尝试备份服务器上的一个MySQL数据库时出现以下错误:

[root@mybox ~]# mysqldump -p --result-file=/tmp/dbbackup.sql --database myDBname
Enter password:
mysqldump: Got error: 145: Table './myDBname/myTable1' is marked as crashed and should be repaired when using LOCK TABLES

一点调查表明,两个表都有此问题。

需要做什么来修复损坏的桌子?


myisam表存储?
rkthkr,2010年

Answers:




0

做这个。

cd / var / lib / mysql / dbname myisamchk --silent --force * .MYI

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.