BigText

BigText home › Guides

Extract one table from a mysqldump file

A full mysqldump of a database can be tens of gigabytes, and often you need one table from it: to restore it, to check its data or to send it to someone. BigText opens the dump at once without loading it into memory, lists its tables in one pass and writes the one you need to its own file, with what it needs to restore.

Step by step

  1. Open the dump

    Open the .sql file with File → Open or by dragging it onto the window. A .sql.gz dump opens directly too.

  2. List the tables

    File → SQL dump tables… reads the dump once, about a gigabyte a second, and lists its tables with their rows and sizes, in the dump's order or largest first. Type part of a name in the filter to find a table among hundreds.

  3. Check the table

    Click a table to go to its CREATE TABLE statement and see its columns.

  4. Save it to a file

    Right-click the table and choose Save this table as… The file gets the table's DROP and CREATE statements, its rows, keys, indexes and triggers, and the dump's opening and closing settings, so it restores on its own: mysql shop < orders.sql.

Good to know

Download BigText free

More guides