drgc9632 2015-08-03 09:12
浏览 1806

MySQL - 删除.frm和.ibd文件后能够访问数据库

I have a MySQL server which is running with out any error. Accidentally i removed all .ibd and .frm files. But server is not throwing any error. It continue data insert and all operations even using command line.

I found that its using ibdata files temporarily to stored and access the records.

If i try to access all records it show no records found. and it show no tables available for 'show tables' but it doesn't throw any error message if i access using particular table name

How do i over come this scenario. If any .ibd or .frm file is deleted it should throw error if i access the table.

  • 写回答

1条回答 默认 最新

  • doulutian4843 2015-08-03 19:17
    关注

    Try CHECK TABLE my_table EXTENDED;

    Edit:

    REPAIR TABLE tbl_name EXTENDED should help you to bring back corrupted data. Please make a backup of the table itself and the whole database first.

    评论

报告相同问题?

悬赏问题

  • ¥20 测距传感器数据手册i2c
  • ¥15 RPA正常跑,cmd输入cookies跑不出来
  • ¥15 求帮我调试一下freefem代码
  • ¥15 matlab代码解决,怎么运行
  • ¥15 R语言Rstudio突然无法启动
  • ¥15 关于#matlab#的问题:提取2个图像的变量作为另外一个图像像元的移动量,计算新的位置创建新的图像并提取第二个图像的变量到新的图像
  • ¥15 改算法,照着压缩包里边,参考其他代码封装的格式 写到main函数里
  • ¥15 用windows做服务的同志有吗
  • ¥60 求一个简单的网页(标签-安全|关键词-上传)
  • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法