13

can any one say some way to convert SQL code to data diagram like ERD ? for som DBMS like MySQL or general SQL

Sajad Bahmani
  • 17,325
  • 27
  • 86
  • 108
  • 1
    I can't think of a single ERD application that doesn't allow reverse engineering from either a DB or a script. Can you be a little more specific? Do you currently have an ERD application that you're using? What format do you want it in? – Tom H May 14 '10 at 19:47
  • 2
    I need a tool convert sql code ( create table ) to diagrams like ERD (ERD not important ) – Sajad Bahmani May 14 '10 at 19:52

4 Answers4

15

using mysql Workbench do the following:

1- file -> new model

2- file -> import -> reverse engineer mysql create script

select ur mysql file script

and tick on place imported objects on a diagram

and press next and finish

Ahmed M. Matar
  • 514
  • 1
  • 5
  • 13
  • 1
    Thanks man! Worked for me, even with dockerized workbench https://hub.docker.com/r/openkbs/mysql-workbench/ – JRichardsz Dec 11 '19 at 20:28
4

Use MySQL WorkBench. It's perfect and absolutely compatible with MySQL, Oracle powered!

Check it out here: MySQL Workbench

Zev Eisenberg
  • 8,080
  • 5
  • 38
  • 82
sstauross
  • 2,602
  • 2
  • 30
  • 50
2

ModelRight, http://www.modelright.com/ , is a good ERD application and is free for MySQL and ODBC connected databases. It reverse engineers from a DB, if you want to reverse engineer from SQL Script, you should check out Dezign for Databases, http://www.datanamic.com/

Dwight T
  • 1,457
  • 2
  • 11
  • 20
2

For MySQL can use sqlyog :

SQLyog MySQL GUI is the most powerful MySQL manager and admin tool, combining the features of MySQL Query Browser, Administrator, phpMyAdmin and other MySQL Front Ends and MySQL GUI tools in a single intuitive interface.

http://www.webyog.com/en/

Sajad Bahmani
  • 17,325
  • 27
  • 86
  • 108