Question

I've used WWW SQL Designer several times to design databases for applications. I'm now in charge of working on an application with a lot of tables (100+ mysql tables) and I would love to be able to look at the relations between tables in a manner similar to what WWW SQL Designer provides. It seems that it comes with the provisions to hook up to a database and provide a diagram of its structure, but I've not yet been able to figure out exactly how one would do that.

Was it helpful?

Solution

http://code.google.com/p/database-diagram/

This takes a SQL structure (SQL dump) and shows a diagram :)

OTHER TIPS

I know this is really old stuff, but I found the solution (if people are looking for it) : you have to edit the file backend/php-mysql/index.php and fill the connection settings. All you need is then to click on Import From DB, and then Load with the name of your database.

function setup_import() {
    define("SERVER","localhost");
    define("USER","");
    define("PASSWORD","");
    define("DB","information_schema");
}

Can you just export the sql query that builds your existing tables, and run that in WWW SQL Designer? Most database management software has that option...

Looking at the interface of the designer, I guess that when you run it on your own PHP/MySQL server, you should be able to import existing database with "Import from DB" button in Save/Load dialog.

You could use VISIO to import the database, it will diagram it for you.

btw, have you tried SchemaBank? They are web-based and support MySQL fairly well. It eats your sql dump and generates the tables and relationships for you.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top