SELECT table_schema 'DB Name',
round(Sum(data_length + index_length) / 1024 / 1024, 1) 'DB size in MB'
FROM information_schema.tables
GROUP BY table_schema;
Posted by Luis Romero to Custom Exposure (2014-08-27 18:28)
SELECT table_schema 'DB Name',
round(Sum(data_length + index_length) / 1024 / 1024, 1) 'DB size in MB'
FROM information_schema.tables
GROUP BY table_schema;