MySQL Error 1146: Table Doesn't Exist

INSERTs ran before the table was created — an ordering problem, usually from importing split chunks out of sequence.

Common causes

  • • Split chunks imported in the wrong order
  • • Foreign keys referencing not-yet-created tables
  • • Table name casing differences across operating systems

Best fixes

  • • Import split files in their numbered order
  • • Wrap the import in SET FOREIGN_KEY_CHECKS = 0
  • • Set lower_case_table_names consistently on the target

Quick fix

Split the dump into smaller parts to reduce statement size and import time.

Open SQLSplit

Related guides