Question Detial
MySQL Query for getting list of tables in a database with size.
SELECT
table_name 'Table Name',
data_length + index_length 'Size in Bytes',
ROUND(((data_length + index_length) / 1024 / 1024), 2) 'Size in MiB'
FROM information_schema.tables
WHERE table_schema = 'your_database_name'
ORDER BY (data_length + index_length) DESC;
Hot Questions
How to Get the Size of all Tables in a database in MySQL?