SELECT
table_name as `Table`,
ROUND(((data_length + index_length) / 1024 / 1024), 2) AS `Total Size (MB)`,
ROUND((data_length / 1024 / 1024), 2) AS `Data (MB)`,
ROUND((index_length / 1024 / 1024), 2) AS `Index (MB)`,
table_rows AS `Approx Rows`
FROM
information_schema.TABLES
WHERE
table_schema = 'your_database_name'
ORDER BY
(data_length + index_length) DESC;
We use essential cookies to make this site work, and optional cookies to enhance your experience.