Section: mysqldump and restore

Dump data only

bash
bash
mysqldump -u root -p --no-create-info app_db > app_db-data.sql
Explanation

Handy when the schema already exists and you only need data.

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 mysqldump and restore
Dump one database
Export schema and data from one database.
OpenIn sheetbashsame section
Dump one table
Export a single table only.
OpenIn sheetbashsame section
Dump schema only
Export DDL without row data.
OpenIn sheetbashsame section
Restore from a SQL dump
Load a dump file into MySQL.
OpenIn sheetbashsame section
Export query results to CSV-like output
Write rows to a server-side file.
Load CSV data into a table
Import delimited files efficiently.