revraz Posted December 22, 2007 Share Posted December 22, 2007 Wondering if there are any tools out there that can read a mysql DB structure and give a nice graphic display of the tables, their fields and their settings. Something like a Visio drawing? Myphpadmin has a few export options, but the only thing that comes close is the Word export Quote Link to comment https://forums.phpfreaks.com/topic/82768-solved-any-tools-out-there-to-give-a-nice-graphic-display-of-mysql-tables/ Share on other sites More sharing options...
revraz Posted December 22, 2007 Author Share Posted December 22, 2007 Time to use Visio I assume. Quote Link to comment https://forums.phpfreaks.com/topic/82768-solved-any-tools-out-there-to-give-a-nice-graphic-display-of-mysql-tables/#findComment-421260 Share on other sites More sharing options...
phpjabbers Posted December 27, 2007 Share Posted December 27, 2007 I use SQLyog. Very nice program. It has releases both for Win and Linux. And also it has free community version. http://webyog.com/en/index.php Quote Link to comment https://forums.phpfreaks.com/topic/82768-solved-any-tools-out-there-to-give-a-nice-graphic-display-of-mysql-tables/#findComment-424024 Share on other sites More sharing options...
talk2astro Posted December 27, 2007 Share Posted December 27, 2007 Hi I too started using SQLyog, but could manage to get only the trial version (26 days). Any possibility to get a free non-trial version ?? Cheers Hari. Quote Link to comment https://forums.phpfreaks.com/topic/82768-solved-any-tools-out-there-to-give-a-nice-graphic-display-of-mysql-tables/#findComment-424031 Share on other sites More sharing options...
wrong_move18 Posted December 27, 2007 Share Posted December 27, 2007 Hi I too started using SQLyog, but could manage to get only the trial version (26 days). Any possibility to get a free non-trial version ?? Cheers Hari. You can use the Community Edition.. URL: http://webyog.com/en/downloads.php Quote Link to comment https://forums.phpfreaks.com/topic/82768-solved-any-tools-out-there-to-give-a-nice-graphic-display-of-mysql-tables/#findComment-424034 Share on other sites More sharing options...
revraz Posted December 28, 2007 Author Share Posted December 28, 2007 Thanks for the info, good looking tool. Now to convince my webhost to add it as a tool since they don't allow outside access. Quote Link to comment https://forums.phpfreaks.com/topic/82768-solved-any-tools-out-there-to-give-a-nice-graphic-display-of-mysql-tables/#findComment-424456 Share on other sites More sharing options...
Barand Posted December 29, 2007 Share Posted December 29, 2007 Here's a simple script to display table structures. Call with "schema.php?db=dbname&cols=4" defaults: db=test cols=3 ::schema.php:: <?php mysql_connect('localhost'); mysql_select_db('information_schema'); $numcols = isset($_GET['cols']) ? $_GET['cols'] : 3; $db = isset($_GET['db']) ? $_GET['db'] : 'test'; $sql = "SELECT C.TABLE_NAME, GROUP_CONCAT(C.COLUMN_NAME SEPARATOR '<br/>') as cols FROM `COLUMNS` C WHERE C.TABLE_SCHEMA='$db' GROUP BY C.TABLE_NAME"; $res = mysql_query($sql) or die (mysql_error()."<p>$sql</p>"); ?> <html> <head> <meta name="generator" content="PhpED Version 4.5 (Build 4513)"> <title>DB Tables</title> <meta name="author" content="Barand"> <meta name="creation-date" content="12/29/2007"> <style type='text/css'> DIV.container { float: left; margin: 30px; width: 200px; } DIV.table { background-color: #B8D3D3; color: #000; font-weight: 600; font-size: 9pt; text-align: center; padding: 8px; border: 1px solid gray; } DIV.cols { font-size: 9pt; background-color: #F0F0F0; color: #000000; text-align: left; padding: 8px; } BR { clear: both; } </style> </head> <body> <?php $k = 0; while (list($table, $cols) = mysql_fetch_row($res)) { echo "<div class='container'>\n"; echo "<div class='table'>$table</div>\n"; echo "<div class='cols'>$cols</div>\n"; echo "</div>\n"; if (++$k % $numcols == 0) echo "<br />\n"; } ?> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/82768-solved-any-tools-out-there-to-give-a-nice-graphic-display-of-mysql-tables/#findComment-424995 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.