Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1579
  • Last Modified:

MySQL entity relationship diagram


Hi EE,

I have a MySQL 5 database that I am accessing using MySQL workbench 5.2.  I want to delete a record but I don't know the relationships between the tables.  Is there a way I can reverse engineer the database using workbench to get an entity relationship diagram?

Thanks, Runnuger
0
runnuger
Asked:
runnuger
  • 2
1 Solution
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
the "reverse engineering" will only "work" in that regards if the db has been implemented with foreign key constraints.if there are none: it won't work to get such a diagram (and deletes will be possible without limitations, hence resulting in logical corruption of the data)if there are some: the diagram can be generated, but then also the deletes will either be cascaded to the child tables or refused ...so, please check first if you have any foreign keys on the tables.
0
 
runnugerAuthor Commented:

Hi Angelll,

The database has been implemented with foreign keys but I am having issues determining how the tables are related to one another.  So if the relationships are intact then a cascade delete with occur when I remove a record from one table?  Have you ever used workbench to produce an ERD?

Thanks, Runnuger
0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
>Have you ever used workbench to produce an ERD?
no

> So if the relationships are intact then a cascade delete with occur when I remove a record from one table?
yes
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now