Reputation: 433
Can anybody tell whether it possible for exporting only the table structure using MySQL workbench
Upvotes: 41
Views: 58637
Reputation: 89
Step 1: Open MySql Workbench
Step 2: Go to Server >> Data Export
Step 3: Select Your table or database and select one of option from
1. Dump Structure and data (default selected option) , or
2. Dump data only , or
3. Dump Structure only
Step 4: Click on 'Start Export'
NOTE:if system is Ubuntu Linux then you will your exported files at here 'HOME/dumps'
Upvotes: 1
Reputation: 3021
1) Right click the table and select "Table Inspector"
2) Last tab "DDL" has the table scheme
Upvotes: 2
Reputation: 58632
For those of you that like the visual answer :
Start export - done :)
Upvotes: 37
Reputation: 403
In Workbench
version 6.3
is Menu Server->Data Export
and then select "Dump structure only"
in the selection list at the right of the window
Upvotes: 3
Reputation: 374
In MySQL workbench ,when we are exporting data you have a 3 options Dump Data only,"Dump Structure only", Dump Data Structure only.
Server -> Data Export -> select the schema , Dump Structure only (beside refresh)
$ when we are import this .SQL file , we will get schema without data only tables
Upvotes: 3
Reputation: 549
It's possible to do this at once too. Select "Data Export" in the navigator and then select the schema and the required tables. Then check the checkbox saying "Skip table data(no data)" and then click on "Start Export" button.
Upvotes: 8
Reputation: 8431
To get an individual table's creation script:
To enable the File:
Forward Engineering SQL_CREATE Script.. option and to get the creation script for your entire database:
Upvotes: 48