これは、stackoverflow で見た関連する InnoDB 修復に関する質問とは少し異なります。
innodb_file_per_table=1 を使用して MySQL 5.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 ファイルを再構築するにはどうすればよいですか?