一日正在对一数据库中一数据表进行删除操作,突然断电,服务器重新启动后,继续执行删除命令,出现以下错误:

mysql> delete from table1 where ymd<=20091031;
ERROR 126 (HY000): Incorrect key file for table './db1/table1.MYI'; try to repair it

 

# myisamchk -r /var/lib/mysql/db1/table1.MYI
报告修复成功,但是执行删除命令然后出现错误;

 

mysql> repair table table1;
修复成功,执行删除命令ok;

很奇怪,还没有来得及去研究为什么,先记录下来.

相关文章:

  • 2021-12-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2022-01-26
  • 2021-11-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-09
  • 2022-01-21
  • 2021-12-05
  • 2021-11-20
相关资源
相似解决方案