MySQL Error 2013: Lost Connection During Query

The connection drops while importing a large or slow statement.

Common causes

  • Long‑running INSERT statements
  • Server timeouts on shared hosting
  • Large dump imported via phpMyAdmin

Best fixes

  • Split the dump into smaller parts
  • Import via CLI or WP‑CLI when possible
  • Reduce statement size by splitting

Quick fix

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

Open SQLSplit

Related guides