MySQL/ MariaDB Schema Size
Category : Supporting Scripts
Create a MySQL or MariaDB view to show the aggregated size of each schema in the database:
See database size for more information.
CREATE OR REPLACE VIEW schema_size AS
SELECT table_schema
, round(SUM(((data_length + index_length) / 1024 / 1024)), 2) table_size_mb
FROM information_schema.tables
WHERE table_schema IN ('dv', 'da', 'hue')
GROUP BY table_schema
ORDER BY table_size_mb DESC