MySQL Error 1064: SQL Syntax Error on Import

The parser rejects a statement — usually a bad split, a version mismatch, or a truncated file rather than a real syntax problem.

Common causes

  • File split mid-statement by a non-SQL-aware tool
  • MySQL 8 syntax imported into MariaDB or MySQL 5.7
  • Truncated or partially downloaded dump

Best fixes

  • Split at statement boundaries so chunks stay valid
  • Match the export and import server versions
  • Check the dump ends with a clean 'Dump completed' marker

Quick fix

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

Open SQLSplit

Related guides