A very strange error that i can't work out. I can't create a table as mysql says it exists, even though I have explicitly tried to drop it.
mysql> drop table `wp881-2`.`trd_plans`;
ERROR 1051 (42S02): Unknown table 'wp881-2.trd_plans'
mysql> CREATE TABLE `wp881-2`.`trd_plans` ( `id` INT NOT NULL ) ENGINE = InnoDB;
ERROR 1813 (HY000): Tablespace '`wp881-2`.`trd_plans`' exists.
To double check i've also run show tables; and the table doesn't exist there either.
Any help much appreciated.
EDIT: This isn't a duplicate as far as I can tell because I tried the suggested solution of deleting orphaned files and while there was an extra .ibd file (which I deleted), when I tried to execute CREATE TABLE again still the same error.