Section: mysqldump and restore

Dump one table

bash
bash
mysqldump -u root -p app_db users > users.sql
Explanation

Useful for debugging, selective migrations, or sharing one dataset slice.

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 schema only
Export DDL without row data.
OpenIn sheetbashsame section
Dump data only
Export rows without CREATE statements.
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.