generating SQL ER diagram on Linux

I'm try to install MySQL Workbench from the rpm on the MySQL web site and it fails:

error: Failed dependencies:
        libcrypto.so.7 is needed by mysql-workbench-oss-5.1.7-1fc9.i386
        liblua-5.1.so is needed by mysql-workbench-oss-5.1.7-1fc9.i386
        libssl.so.7 is needed by mysql-workbench-oss-5.1.7-1fc9.i386
        libzip.so.1 is needed by mysql-workbench-oss-5.1.7-1fc9.i386

How can I get around this? I'm on CentOS 5.1. I cannot find these packages through the CentOS and dag repositories.

OR, more generally  -

Is there something freely available that would generate a good ER diagram from a sql file? I've searched and cannot find anything. GraphViz graphs are rudimentary at best and do not show relationships between tables. I do not want a big, complex or commercial application.

It's especially surprising that this does not exist because it is a common need and could easily be adapted to an ad supported web based application.

Thanks

LVL 1
steveriley1310Asked:
Who is Participating?
 
ai_ja_naiConnect With a Mentor Commented:
0
 
ai_ja_naiCommented:
usually the error messages are a good point to start investigating.
In this case, it's complaining the lack of libraries as libcrypto, liblua, libssl, libzip. The solution is to install them.
If you got that package in .rpm format, it's a good idea running

rpm -R package.rpm

to see which dependencies are to be met before installing that package
0
 
ai_ja_naiCommented:
anyway, for the second question, try this http://sql2diagram.sourceforge.net/
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
ai_ja_naiCommented:
ERRATA CORRIGE: sorry, I mistyped the rpm command. It's

rpm -qR package.rpm

Why don't you have a look at yum, by the way? it's a modern package manager that will solve dependencies problems for you...
0
 
arnoldCommented:
You're on centos, you should try getting the binary for RHEL 4 which I think is closer.  Alternatively, get the source and compile it yourself.
0
 
steveriley1310Author Commented:
ai_ja_nai -

Thanks for the quick reply and ideas.

I tried to find those package dependencies and was not able to find them.

sql2diagram sounds good. I got it compiled and followed the directions closely. I was not able to see a graph in dia. I don't mean to be a complainer, but this seem tedious at best to go through dia! I'd really like something that would go directly to an image.

0
 
steveriley1310Author Commented:
ai_ja_nai -

Sorry it has taken me a while to respond.

I tried this on CentOS and could not get it to work. I kept getting Perl errors. (Wasted a lot of time on it.) I suspect there is some incompatibility among the components that I installed separately. CentOS does not have a sqlfairy package.

Then I tried on Ubuntu as your link suggested, simple package install:

   apt-get install sqlfairy

Command:

   sqlt-diagram --db=MySQL -o sakila.png sakila-schema-short.sql --color --gutter 100

Worked perfectly.

I have attached a diagram of the MySQL sakila example db. Isn't it pretty?

Thanks


sakila.png
0
 
ai_ja_naiCommented:
A little entangled :D
Anyway, glad your problem has solved
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.