
You can copy it to your clipboard or click Finish to save it to a file: The “Review Generated Script” dialog box allows you to copy the script to your clipboard, and/or save it (by clicking “Finish”). When MySQL Workbench is first opened a default schema, mydb is selected. SQL Object Export FilterĮxclude any objects by deselecting them, otherwise leave them as is, then click Continue: The “SQL Object Export Filter” dialog box allows you to exclude certain options from the script if required. Each schema shows as a tab a specific schema is selected by clicking its tab. Its main advantage is how easy it is to work with the MySQL DBMS. SQL Export OptionsĮnter a location to save the file (optional) and set options to include on the script (such as DROP statements etc), then click Continue: The “SQL Export Options” dialog box allows you to make adjustments to your script. Developed exclusively to work with MySQL DBMS, it is one of the best-known and most used free tools for those who work with this DBMS, both for ER modeling and executing SQL scripts, as mentioned in this article. Select File > Export > Forward Engineer SQL CREATE Script.: Using the “Export” option to generate an SQL script. Download scientific diagram Entity Relationship (ER) diagram of the SQL database, from MySQL Workbench. Similarly, the changes you make within a diagram register seamlessly in the Model Editor. Revisions made with the Model Editor are shown in the associated diagram. EER diagrams provide a visual representation of the relationships among the tables in your model. You can copy it to your clipboard or click Finish to save it to a fileīelow are screenshots for the above steps. Enhanced Entity-Relationship (EER) diagrams are an essential part of the modeling interface in MySQL Workbench. MySQL Workbench provides extensive capabilities for creating and manipulating database. Note This tool is for creating and editing EER diagrams for a model. Models are used to build ER diagrams and physical MySQL databases.

The Vertical Toolbar is on the left side of the canvas. Clicking an EER diagram tab navigates to the canvas used for graphically manipulating database objects. A specific EER diagram is selected by clicking its tab.

Select File > Export > Forward Engineer SQL CREATE Script.

To generate a script from a diagram in MySQL Workbench:
