Users online:
46
Most ever online:
291
People on this page:
1
Date:
21.11.2008
Time:
23:03:15
More stats
Home
>
Communication
>
Comments
> Get the Size of a MySQL Database with PHP
Get the Size of a MySQL Database with PHP
>> Output the size of a MySQL database with this simple script
Here are the latest comments for the resource
Get the Size of a MySQL Database with PHP
.
Is the simplest and best way to get the size of a db. i try many scripts on net and thx God i found this..good job
mascka
commented on 15/01/2008, 10:29:53
If you have access to shell commands, a real easy optional way to do this would be to do:
function getDbSize($dbname){
$size=shell_exec("du -b /var/lib/mysql/$dbname");
$size=explode(' ',$size);
return $size[0];
}
Steve
commented on 19/09/2006, 19:38:47
Good little script - works perfectly
Steve
commented on 21/08/2006, 16:35:07
Awesome
Matt
commented on 11/07/2006, 09:19:23