Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Worked for me! [ERROR] InnoDB: The file './dbname/tablename.ibd' already exists though the corresponding table did not exist in the InnoDB data dictionary. Have you moved InnoDB .ibd files around without using the SQL commands DISCARD TABLESPACE and IMPORT TABLESPACE, or did mysqld crash in the middle of CREATE TABLE? You can resolve the problem by removing the file './dbname/tablename.ibd' under the 'datadir' of MySQL. Commented Mar 29, 2018 at 17:40
  • 1
    Can't create table as Tablespace exists. Commented Oct 15, 2018 at 23:40
  • 1
    it's not work for me. ibd file keep appering after i want to recreate table with same engine. Commented Apr 6, 2020 at 4:36