how to export a database in mysql without the data code example Example: how to export db from mysql mysqldump -u username -p dbname > dbexport.sql