Guides › Hosting, domain & email › Backups & restore

phpMyAdmin Import Fails: File Too Large or Script Timed Out

Large database files will not import. Use compression, raise limits or import in parts.

Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.

phpMyAdmin has size and time limits for imports.

Options

  1. Compress the SQL file as a zip or gzip. phpMyAdmin can import compressed files, which is often enough.
  2. Raise PHP limits (upload_max_filesize, post_max_size, max_execution_time) in your hosting panel. See our upload guide.
  3. Ask your host to import it, or use their import tool.
  4. Split the file into parts with a trusted tool, then import in order.
  5. Use the command line (SSH), if your plan offers it, with the mysql client.

Before importing

Errors

"Error establishing connection" after import: see our database guide.

Related guides

Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.

Last updated 2026-11-21.