Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <h2>How to generate SQL scripts for your database in Workbench</h2> <ol> <li>In <em>Workbench Central</em> (the default "Home" tab) connect to your MySQL instance, opening a <em>SQL Editor</em> tab.</li> <li>Click on the <em>SQL Editor</em> tab and select your database from the <em>SCHEMAS</em> list in the <em>Object Browser</em> on the left.</li> <li>From the menu select <code>Database &gt; Reverse Engineer</code> and follow the prompts. The wizard will lead you through connecting to your instance, selecting your database, and choosing the types of objects you want to reverse engineer. When you're all done, you will have at least one new tab called <em>MySQL</em> Model. You may also have a tab called <em>EER Diagram</em> which is cool but not relevant here.</li> <li>Click in the <em>MySQL Model</em> tab</li> <li>Select <code>Database &gt; Forward Engineer</code></li> <li>Follow the prompts. Many options present themselves, including <em>Generate INSERT Scripts for Tables</em> which allows you to script out the data contained within your tables (perfect for lookup tables). </li> <li>Soon you will see the generated script in front of you. At this point you can <code>Copy to Clipboard</code> or <code>Save to Text File</code>. </li> </ol> <p>The wizard will take you further, but if you just want the script you can stop here.</p> <p>A word of caution: the scripts are generated with <code>CREATE</code> commands. If you want <code>ALTER</code> you'll have to (as far as I can tell) manually change the CREATEs to ALTERs.</p> <p>This is guaranteed to work, I just did it tonight.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload