I'm using a MySql database with a Java program, now I want to give the program to somebody else.
How to export the MySql database structure without the data in it, just the structure?
Steps to create a schema in MySQLOpen the MySQL Workbench. Click the Create Schema option. Provide a schema name. Click apply to create the MySQL scheme.
You can do with the --no-data
option with mysqldump command
mysqldump -h yourhostnameorIP -u root -p --no-data dbname > schema.sql
Yes, you can use mysqldump
with the --no-data
option:
mysqldump -u user -h localhost --no-data -p database > database.sql
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With