简体   繁体   English

MySQL MyISAM关系图

[英]MySQL MyISAM relationship diagram

We're using this pretty large MySQL database with a bunch of tables. 我们正在使用这个相当大的MySQL数据库和一堆表。 The most important table is a "plants" table, which contains about 1 million records. 最重要的表是“植物”表,其中包含大约100万条记录。

This table contains about 25 fields, each and every field is a reference (not foreign key because it's MyISAM) to another table which contains the actual information. 该表包含大约25个字段,每个字段都是一个引用(不是外键,因为它是MyISAM)到另一个包含实际信息的表。 So when you look at the plants table all you get is numbers. 所以当你看植物表时,你得到的只是数字。

The issue is that I didn't write this database design, and my boss is asking me to give her a diagram of the tables relationships. 问题是我没有写这个数据库设计,而我的老板要我给她一张表关系图。 As you can imagine, already with 25 fields, this becomes really complicated, and it would involve me manually going through each field, and associate it by name similarity - for example - the category_id field is probably a relation with the categories table; 你可以想象,已经有25个字段,这变得非常复杂,它将涉及我手动遍历每个字段,并通过名称相似性关联 - 例如 - category_id字段可能是与categories表的关系; and so on. 等等。

Any ideas to simplify my work? 有什么想简化我的工作吗?

Import the schema into Mysql workbench (free) or SQLyog (paid, but IMO better) and work with that. 将模式导入Mysql workbench (免费)或SQLyog (付费,但IMO更好)并使用它。 Both have schema visualising and drawing tools that will help a lot. 两者都有架构可视化和绘图工具,这将有很大帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM