How to Easily Find the Size of Tables in a MySQL Database

SELECT table_name AS "Tables", round(((data_length + index_length) / 1024 / 1024), 2) "Size in MB" FROM information_schema.TABLES WHERE table_schema = "{{DATABASE_NAME}}" ORDER BY (data_length + index_length) DESC limit 10;

Comments Off on How to Easily Find the Size of Tables in a MySQL Database

Categories geeked

Tags , ,