Skip to content

Instantly share code, notes, and snippets.

@lizconlan
lizconlan / mysql_database_size_query
Created February 11, 2010 11:36
Getting database sizes from MySQL
SELECT table_schema "Database Name", sum( data_length + index_length ) / 1024 / 1024 "Database Size in MB"
FROM information_schema.TABLES GROUP BY table_schema;