【发布时间】:2017-02-01 00:42:10
【问题描述】:
这与我在 stackoverflow 上看到的相关 InnoDB 修复问题略有不同。
假设我在 MySQL 5.1 数据库中使用 innodb_file_per_table=1 恢复了以下内容:
db/tablename.ibd
innodb/ibdata1
innodb/ib_logfile0
innodb/ib_logfile1
我丢失了db/tablename.frm 文件。我可以启动数据库服务器,但 InnoDB 抱怨:
110723 13:26:33 InnoDB: Error: table 'db/tablename'
InnoDB: in InnoDB data dictionary has tablespace id 5943,
InnoDB: but tablespace with that id or name does not exist. Have
InnoDB: you deleted or moved .ibd files?
如何重建 FRM 文件?
【问题讨论】:
标签: mysql database innodb restore database-restore