How do I generate a SQL script from my diagram in MySQL Workbench?

Don Rhummy picture Don Rhummy · Aug 6, 2013 · Viewed 34.3k times · Source

I've created an EER diagram with tables, foreign keys, etc in MySQL Workbench and now I want to generate a ".sql" script that will create this database. How do I do that?

Answer

Dirk McQuickly picture Dirk McQuickly · Aug 6, 2013

Try: File->Export->Forward Engineer SQL CREATE Script