Skip to main content
TiDB supports several methods for importing and exporting data depending on dataset size and use case.

Export with Dumpling

Dumpling is the recommended tool for exporting large datasets. It exports data as SQL dump files or CSV.

Dumpling options

Export with SELECT INTO OUTFILE

For small exports from within a SQL session:
SELECT INTO OUTFILE writes to the TiDB server’s local filesystem. For large datasets, use Dumpling instead.