MySQL Backup, Restore, Import, and Export Cheatsheet/Import delimited text with mysqlimport

Use the mysqlimport command-line utility.

Section: imports, exports, and mysql shell utilities

Import delimited text with mysqlimport

bash
bash
mysqlimport -u root -p --local --fields-terminated-by=, app_db users.csv
Explanation

`mysqlimport` is a wrapper around `LOAD DATA` semantics.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing imports, exports, and mysql shell utilities
Export query results to CSV-like output
Write rows to a server-side file.
OpenIn sheetsqlsame section
Load CSV data into a table
Import delimited files efficiently.
OpenIn sheetsqlsame section
Dump an instance with MySQL Shell
Use MySQL Shell utilities for scalable dumps.
OpenIn sheetbashsame section
Load a MySQL Shell dump
Restore a dump created by MySQL Shell utilities.
OpenIn sheetbashsame section
Dump one database
Export schema and data from one database.
Dump one table
Export a single table only.