Monthly Archive for February, 2010

How much space does my MySQL database take up?

Find out with this query:

SELECT table_schema "DB", sum( data_length + index_length ) / 1024 / 1024 / 1024 "Size (GB)" FROM information_schema.TABLES GROUP BY table_schema;

Props to: Prakash Babu