[TRUCO MySQL] Tamaño de la Base de Datos.
sql
SELECT table_schema AS 'Nombre Db', Round( SUM( data_length + index_length ) / 1024 / 1024, 3 ) AS 'Tamaño Db (MB)', Round( SUM( data_free ) / 1024 / 1024, 3 ) AS 'Espacio Libre (MB)' FROM information_schema.TABLES GROUP BY table_schema ;
Saludos!