Reputation: 2575
I am using mysql and innodb storage engine, bymistakely I deleted .frm file from application and now have just .ibd file. Not able to restore the table structure as frm file is not there.
Is there any way to get the .frm file back, or how should I restore table without .frm file, I have table structure in .sql file
Any help on this please
Upvotes: 1
Views: 1111
Reputation: 2258
On 5.5 there are two ways. Either a fake frm file as ravnur suggested or dump records from the .ibd file with https://github.com/twindb/undrop-for-innodb
The most reliable way would be import the table space in 5.6. Upgrade to 5.6 is not a bad idea anyway.
Upvotes: 1