Export DDL without row data.
Section: mysqldump and restore
Dump schema only
bash
bash
mysqldump -u root -p --no-data app_db > app_db-schema.sqlExplanation
Common when you want table definitions for code review or environment bootstrapping.
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