Page 1 of 1

How do I find the size of my database?

Posted: Wed Sep 05, 2012 3:07 pm
by mister_v
Hi,

does anyone knows the command to show the size of the SQL-database?

thanks,

Re: How do I find the size of my database?

Posted: Wed Sep 05, 2012 3:49 pm
by chris
With MySQL you can give the following command:

Code: Select all

SELECT table_schema "database_name",sum( data_length + index_length ) / 1024 /1024 "Data Base Size in MB" FROM information_schema.TABLES GROUP BY table_schema;
This tells the size in MB.

But you can install phpMyAdmin (http://www.phpmyadmin.net), if you want to easily manipulate MySQL databases.