Only data and no schema

You can use the following options to take only a data dump, excluding the schema.

--complete-insert will print the column names in the INSERT statement, which will help when you have extra columns in the modified table:

shell> mysqldump --all-databases --no-create-db --no-create-info --complete-insert > data.sql

Get MySQL 8 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.