<?php $link = mysql_connect('host', 'username', 'password'); $db_name = "your database name here"; $tables = array(); mysql_select_db($db_name, $link); $result = mysql_query("SHOW TABLE STATUS"); while($row = mysql_fetch_array($result)) { /* We return the size in Kilobytes */ $total_size = ($row[ "Data_length" ] + $row[ "Index_length" ]) / 1024; $tables[$row['Name']] = sprintf("%.2f", $total_size); } print_r($tables); ?>
↧
Mysql Databasedeki Tablolarin Büyüklüklüklerini ögrenmek
↧