We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

generating SQL ER diagram on Linux

Medium Priority
4,550 Views
Last Modified: 2012-05-06
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

Comment
Watch Question

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
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...
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
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.

Author

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.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

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
A little entangled :D
Anyway, glad your problem has solved
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.