export db schema mysql workbench code example Example: get only structure database mysql Click to copymysqldump -u root -p --no-data dbname > schema.sql