export database mysql without data in terminal code example Example: get only structure database mysql mysqldump -u root -p --no-data dbname > schema.sql