MySQL/ MariaDB Table Size
Category : Supporting Scripts
Create a MySQL or MariaDB view to show the size of each table in the database:
See database size for more information.
CREATE OR REPLACE VIEW table_size AS
SELECT table_schema
, table_name
, 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
, table_name
ORDER BY table_size_mb DESC