Solved

MySQL entity relationship diagram

Posted on 2010-09-11
3
1,559 Views
Last Modified: 2012-06-21

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
Comment
Question by:runnuger
  • 2
3 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 33652804
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
 

Author Comment

by:runnuger
ID: 33654870

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
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 33659973
>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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now