What does “MySQL server has gone away” mean?

Quick answerBeginnerUpdated

Short answer

The database connection was dropped mid-query, usually because the query took too long or sent too much data at once. It shows up most often when importing a large database file rather than during normal browsing.

For an import, the fix is to split the file into smaller pieces or import it compressed. For a site that shows it in normal use, the cause is usually one slow query or an unoptimised table — repairing and optimising the tables is the first thing to try.

Learn more

Step-by-step

All troubleshooting questions · All questions and answers

Popular

Tip: press / to search from any pageSee all results