MySQL Error 2006: Server Has Gone Away

Your import dies mid‑way because the server drops the connection or hits packet limits.

Common causes

  • • Huge INSERT statements
  • • max_allowed_packet too low
  • • phpMyAdmin timeout on shared hosting

Best fixes

  • • Split the dump into smaller chunks
  • • Import sequentially to reduce per‑request time
  • • Use CLI import if available

Quick fix

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

Open SQLSplit

Related guides