How to find all the relations between all mysql tables?

前端 未结 9 1958
甜味超标
甜味超标 2020-12-01 01:12

How to find all the relations between all MySQL tables? If for example, I want to know the relation of tables in a database of having around 100 tables.

Is there any

9条回答
  •  一个人的身影
    2020-12-01 01:26

    One option is : You can do reverse engineering to understand it in diagrammatic way.

    When you install MySQL, you will get MySQLWorkbench. You need to open it and choose the database you want to reverse engineer. Click on Reverse Engineer option somewhere you find under the tools or Database menu. It will ask you to choose the tables. Either you select the tables you want to understand or choose the entire DB. It will generate a diagram with relationships.

提交回复
热议问题