How to know relations between tables

Narasimha Maiya picture Narasimha Maiya · Feb 15, 2016 · Viewed 15k times · Source

I have a database in MySQL created by someone. I don't have any documentation of the database.

How can I know the relationship between the tables?

Is there any query or a procedure to generate a report so that it's easy to find the relations?

I can look into Schema information and manually figure it out, but it would be great if I could generate a relationship report.

Answer

Smita Ahinave picture Smita Ahinave · Feb 15, 2016

You can get an overview in MySql Workbench by doing the steps below:

  1. Go to "Database" Menu option.
  2. Select the "Reverse Engineer" option.
  3. A wizard will be opened and will generate an EER Diagram which shows up