Thursday, 5 September 2013

Mysql table size


Hello,

In order to figure out the table sizes in mysql database, use the following query


SELECT table_name AS "Table",  round(((data_length + index_length) / 1024 / 1024), 2) "Size in MB"  
FROM information_schema.TABLES  
WHERE table_schema = "elyapimi" ;


Hope it helps you out,

Cheers




No comments:

Post a Comment