Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visually designing a database structure

I am quite happy to code out tables by hand when making a database but it's not the easiest way to convey information about a database to someone else, especially someone that's not so comfortable coding the tables via a script and would instead use something such at phpMyAdmin.

Is there thus a free program (for me to use it it'll have to work on a Mac but feel free to suggest PC apps for others with the same Q) or script (preferably in PHP or Python) that allows you to design database structure and will then output either a basic diagram or the code as chosen by the user?

like image 726
Teifion Avatar asked Sep 22 '08 12:09

Teifion


4 Answers

Well on the PC you can use MS Visio to produce a DB Entity diagram.

It will even reverse engineer one from an existing Database.

A pain to set-up the first time you use it, but quite handy thereafter.

like image 188
Matt Avatar answered Sep 29 '22 13:09

Matt


Open System Architect has some potential. Its very similar to Visio.

like image 28
user14308 Avatar answered Sep 29 '22 11:09

user14308


I'm a big fan of ARGO UML from Tigris.org. Draws nice pictures using standard UML notation. It does some code generation, but mostly Java classes, which isn't SQL DDL, so that may not be close enough to what you want to do.

You can look at the Data Modeling Tools list and see if anything there is better than Argo UML. Many of the items on this list are free or cheap.

Also, if you're using Eclipse or NetBeans, there are many design plug-ins, some of which may have the features you're looking for.

like image 33
S.Lott Avatar answered Sep 29 '22 13:09

S.Lott


I use the aptly named Database Design Tool. It's extremely simple and unfortunatly it's developed any more, however. It's the best tool I've come across that is free and at the end of designing your tables, it generates the T-SQL for you. It's also language independent.

alt text

like image 41
GateKiller Avatar answered Sep 29 '22 12:09

GateKiller