CertGrid CertGrid
Hands-on Lab·MySQL

MySQL Partial and Schema-Only Dumps

Dump one table, or the structure with no rows at all. `--no-data` produces a file with zero INSERT statements - useful for a schema diff, and catastrophic if you thought it was your backup.

Backup and Restore Guide 23 of 45 Intermediate

Written against the versions above. Table selection syntax is positional - database first, then tables. It reads oddly and is a common source of dumping the wrong thing.

Every command on this page ran on db-a01.
Server NameIP AddressOSRolesCPURAMHDD
db-a01192.168.0.81Ubuntu 26.04 LTSPrimary / Source / Replica Set Member 12 Core4 GB50 GB

Before you start

  1. Dump a single table

  2. Dump the structure with no data at all

Official sources