Export MySQL database schema without exporting its data

Exports a MySQL database schema to a file without exporting its underlying data.

Authored by: Daric
Brought to you by Warp, a free terminal reimagined to work like a modern app.
host_name_or_ip
username
output_sql_file_path

Command
Copy
mysqldump -h host_name_or_ip -u username -p --no-data dbname > output_sql_file_path
Tags