Size of a tables in a db

Note: You will need to replace DATABASE_NAME

1
2
3
4
5
6
7
8
9
SELECT table_name AS "Table",
 
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 15;