Frage

Can anybody tell whether it possible for exporting only the table structure using MySQL workbench

War es hilfreich?

Lösung

To get an individual table's creation script:

  • just right click on the table name and click Copy to Clipboard > Create Statement.

To enable the File:

  • Forward Engineering SQL_CREATE Script.. option and to get the creation script for your entire database:

    1. Database > Reverse Engineer (Ctrl+R)
    2. Go through the steps to create the EER Diagram
    3. When viewing the EER Diagram click File > Forward Engineering SQL_CREATE Script... (Ctrl+Shift+G)

Andere Tipps

For those of you that like the visual answer :

enter image description here

enter image description here

Start export - done :)

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.

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)

  • export to self- contained file - location of SQL to export *click on start Export

$ when we are import this .SQL file , we will get schema without data only tables

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

1) Right click the table and select "Table Inspector"
2) Last tab "DDL" has the table scheme

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'
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top