Technical Anshu
Tutorials Blog
🗄️ Export Problems

Big Database Export Keeps Timing Out Here Is the Real Fix

The export starts fine, runs for a few minutes, then quietly dies — and the file it leaves behind looks almost real. Timeouts are the number one reason bulk database downloads fail, and they have a proper fix.

✍️ Technical Anshu🗄️ MySQL / MariaDB⏱️ Backup Guide
🎥 Watch the full process in the video — bulk database download, step by step

If a database export keeps timing out, the problem is rarely the database. It is where the export is running. Browser-based exports live under strict time limits; server-side exports do not. Here is how to recognise the failure and route around it for good.

What a timed-out export leaves behind
tail shopdb.sql INSERT INTO `orders` VALUES (88412,'A. Sharma',... INSERT INTO `orders` VALUES (88413,'R. Verma',... -- file ends here. No closing line. A complete dump ends with: -- Dump completed on 2026-…
An incomplete dump stops mid-table with no completion line. If your file ends like this, it is not a backup.
1

Why Browser Exports Die

phpMyAdmin and panel export tools run as PHP scripts. Hosting servers kill PHP scripts after a fixed time — commonly 30 to 300 seconds — and cap their memory. A big database simply needs longer than the limit allows. Raising the limit is sometimes possible on a VPS; on shared hosting it usually is not yours to change.

2

Fix One — Move the Export to the Server with mysqldump ⭐

This removes the limit instead of fighting it. Over SSH:

  1. mysqldump -u dbuser -p --single-transaction --quick mydatabase | gzip > mydatabase.sql.gz
  2. Let it run — a server-side process is not on a browser clock.
  3. Download the finished compressed file.

--single-transaction keeps the copy consistent on InnoDB without locking your live website, and --quick prevents memory build-up by streaming rows.

3

Fix Two — Split the Export into Pieces

No SSH? Export a few tables at a time in phpMyAdmin — the big tables (orders, logs, posts) one per file, the small ones grouped. Each piece finishes inside the time limit, and the set together is the whole database. Label the files clearly (db-part1-tables-a-m.sql style) so the restore order is obvious later.

4

Fix Three — Shrink What You Export

Some tables are bulk without value: log tables, session tables, cache and statistics tables can hold most of the rows. If your migration does not need them, exclude them — mysqldump supports --ignore-table=db.table per table. Only skip tables you have identified and understood; guessing here can quietly break the restored site.

5

After Any Fix, Prove the Dump Completed

Check the last lines of every exported file. A complete mysqldump file ends with a Dump completed comment line. No completion line means no backup — whatever the file size suggests. For the full verification routine, see the verification page in this set.

🛡️ Your own websites only. Every method on this page is for databases of websites you own, or websites you administer with the owner's clear permission — backups, migrations and testing. A database holds your users' private data; downloading one you have no right to is theft, whatever tool makes it easy.

🎥 Watch the Complete Video

The full bulk database download process — live demo, every step on screen.

▶️ Watch Full Video
❓ Common Questions (FAQ)

My export file is large, so it must be complete, right?

Not necessarily. A timed-out export can still be hundreds of megabytes — it is just missing its last tables. Only the Dump completed line at the end of the file proves the export finished.

Will --single-transaction slow down my live website?

It is designed not to. For InnoDB tables it takes a consistent snapshot without locking tables for writes, so visitors keep using the site while the export runs.

Can I increase the phpMyAdmin time limit myself?

On a VPS or dedicated server, yes — it is a PHP setting. On shared hosting it is normally fixed by the host; the realistic options are splitting the export or asking the host to run it.

This guide is based on the Technical Anshu video on downloading website databases in bulk • Stuck on a step? Ask in the video comments 🙏