Precaution: Before you try this out on your production system do a BACKUP first! FromDual Backup Manager can help you with this.
Situation
A MySQL user has delete its InnoDB table files for example like this:
shell> rm -f $datadir/test/test.*
Analysis
We do some analysis first:
mysql> DROP TABLE test;
ERROR 1051 (42S02): Unknown table 'test'
mysql> CREATE TABLE test (id INT) ENGINE = InnoDB;
ERROR 1050 (42S01): Table '`test`.`test`' already exists
The MySQL error log shows us the following …