时常我们会看到Table 'XXX' is marked as crashed and should be repaired 这样的错误.
出现这样错误的表一般是可以修复的。到mysql的bin目录下执行以下命令进行修复
./myisamchk -r tablename.MYI