[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4390
  • Last Modified:

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

0
steveriley1310
Asked:
steveriley1310
  • 5
  • 2
1 Solution
 
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
 
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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
 
ai_ja_naiCommented:
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

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

  • 5
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now