Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

MySQL entity relationship diagram

Posted on 2010-09-11
3
Medium Priority
?
1,575 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 2000 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 143

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

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

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

Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
In this article, I’ll look at how you can use a backup to start a secondary instance for MongoDB.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

604 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