5
I reinstalled WAMP and did not export the database (.sql), but I have the files ". ibd" and ". frm".
After the installation, I created a blank database and copied to the folder all the files ". ibd" and ". frm", but when trying to open the table via phpmyadmin, an error is returned and informs that the table does not exist.
I did a test with the smallest table, deleted the files, created the table and ran the query below:
ALTER TABLE bd.tabela DISCARD TABLESPACE;
Then I copied the backup files ". ibd" and ". frm" to the folder and ran the query below:
ALTER TABLE bd.tabela IMPORT TABLESPACE;
But there are 2 problems:
- The database has several tables and fields, I can’t recreate everything, because I can’t remember all the information.
- In the test I did, the information was restored but was not inserted in the respective column, that is, changed the information of several columns.
How to restore my tables and their data?
The engine of the tables was Innodb?
– rafaels88
@rafaels88 yes, it was.
– Filipe Moraes
Check out this guy: http://www.hexblot.com/blog/recovering-innodb-tables-ibd-and-frm-files
– rafaels88