steveriley1310
asked on
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
error: Failed dependencies:
libcrypto.so.7 is needed by mysql-workbench-oss-5.1.7-
liblua-5.1.so is needed by mysql-workbench-oss-5.1.7-
libssl.so.7 is needed by mysql-workbench-oss-5.1.7-
libzip.so.1 is needed by mysql-workbench-oss-5.1.7-
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
anyway, for the second question, try this http://sql2diagram.sourceforge.net/
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...
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...
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.
ASKER
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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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
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
A little entangled :D
Anyway, glad your problem has solved
Anyway, glad your problem has solved
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