检查表
check table table_name;
如果有问题就修复
repair table table_name;

解决方案 »

  1.   

    谢谢楼上。
    可是,我在Query Editor中运行check table Exercise.history,结果是:
    Table                Op        Msg_type     Msg_text
    exercise.history    check       status       OK运行repair table Exercise.history,结果是:Table               Op         Msg_type     Msg_text
    exercise.history    repair      error       13 for record at pos41323
    exercise.history    repair      error       Can't copy datafile-header to tempfile,error9
    exercise.history    repair      status      Operation failed然后,这个表打不开了。用TableManager,一个栏位都没有
    用query data,出错提示:An error ocurred while sending the command to the Server.Server Error Message:
    "Can't open file:'history.MYD'.(errno:144)".另外,我不是哪一个表出我在以楼说的这种情况,而是所有的表。可以新增表,第一个栏位在新增表的时候一并设置,有。但是再新增栏位或者修改这第一个栏位,还是一样出错。大概不是某个文件的问题,是Server的问题吧?