how to export structure of a db from mysql in format sql code example Example: get only structure database mysql mysqldump -u root -p --no-data dbname > schema.sql