.
**/
?>
|
|
prepare("SELECT table_schema AS dbname, ROUND(SUM(data_length+index_length)/1024/1024, 2) AS size FROM information_schema.tables GROUP BY table_schema");
$sql->execute();
while($row=$sql->fetch(PDO::FETCH_ASSOC)){
echo "
".$row['dbname']." |
".$row['size']." MB |
";
}
?>