Sometimes we need to export Schema without data means table structure only. We can do this easily by providing "--no-data" option in mysqldump command.
Command:
mysqldump -u root -p --no-data database_name > database.sql
Example:
mysqldump -u root -p --no-data jeeyoh > jeeyoh.sql
by running above command we'll get flippadoo.sql which contains only table structures (without data).
Hope this will help you :)
0 Comment(s)