[MySQL] Generate data dictionary

Data dictionary is one of the document to present data content. It majorly used in ETL to ensure data capture correctly. In MySQL, data dictionary can generate with MySQL workbench plugin. This demo will show how to export data dictionary from existing database.

Steps of generate data dictionary in HTML format.

  1. Download plugin HTML schema generator.
    Download HTMLSchemaReport.py in repository https://github.com/tmsanchez/workbenchscripts . It can done with command below

    wget -L https://github.com/tmsanchez/workbenchscripts/blob/master/HTMLSchemaReport.py

     

  2. Install plugin.
    In MySQL workbench, click Script > Install Plugin / Module, select file downloaded in previous step, then restart application to apply settings.
  3. Execute plugin.
    In MySQL workbench, open model which expected to export, then click Tools > Catalog > Database Schema Report in HTML Format.
  4. Save data dictionary report.
    Select file name and path and click Save.
  5. Get exported result.
    After render, it will popup dialog for result. Click OK to close dialog.
  6. Verify result.
    Go to folder which select previously, expected file can found. If found, then open it and check database column is align with dictionary or not.

[Updated at 2023-02-21] If you are using MySQL workbench, please select HTMLSchemaReportWB8.py instead.

About C.H. Ling 260 Articles
a .net / Java developer from Hong Kong and currently located in United Kingdom. Thanks for Google because it solve many technical problems so I build this blog as return. Besides coding and trying advance technology, hiking and traveling is other favorite to me, so I will write down something what I see and what I feel during it. Happy reading!!!

6 Comments

  1. Do not use this! it will break mysql-workbench.

    if you do this, remove the following file:
    “`Windows %AppData%\MySQL\Workbench\modules\HTMLSchemaReport.py
    macOS ~username/Library/Application Support/MySQL/Workbench/modules/HTMLSchemaReport.py
    Linux ~username/.mysql/workbench/modules/HTMLSchemaReport.py“`
    and restart mysql-workbench

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.