mysql

Espacio ocupado por bases de datos en mysql

Espacio ocupado en GB

select table_schema "DB name (table_schema)", sum((data_length+index_length)/1024/1024/1024) AS "DB size in GB" from information_schema.tables group by table_schema;

Espacio ocupado en MB y espacio disponible

SELECT table_schema "database name", sum( data_length + index_length ) / 1024 / 1024 "database size in MB", sum( data_free )/ 1024 / 1024 "free reclaimable space in MB" FROM information_schema.TABLES GROUP BY table_schema;

Referencias

Etiquetas
Suscribirse a mysql