SQLDumpSplitter » Use cases » Batch import a large SQL dump
Download SQLDumpSplitter Free Trial » Buy SQLDumpSplitter Now »
The dump file is 8 GB and the import has to happen through a client tool - phpMyAdmin, MySQL Workbench, pgAdmin, a web panel, or a hosted database that only accepts a file. The import starts, runs for a while, and then stops: a timeout, a memory error, a packet-size error, or a panel that quietly caps the upload.
The data is fine. The problem is that one enormous file is being handed to a loader that expects a smaller one, in one long transaction that has to survive from the first line to the last.

SQLDumpSplitter understands SQL: it splits the dump along statement boundaries, not at an arbitrary byte offset. That is the whole point - a naive split of a mysqldump file at 100 MB can cut a multi-row INSERT in half and produce a file that will not run at all.
Because the cut lands between statements, every output file is still valid SQL and can be executed on its own, in order. The original dump is never modified, and the file's encoding is preserved, so nothing is re-encoded on the way.
Splitting the same dump: by file size, by row count, by table, or the general guide. Automating it: command line, scheduled task, saved session. Producing the dump from a live database: DBToFile.