Check all Table Size of a MySQL Database using Command


Replace wbxpress with the actual database name.

SELECT table_name AS "Table",
ROUND(((data_length + index_length) / 1024 / 1024), 2) AS "Size (MB)"
FROM information_schema.TABLES
WHERE table_schema = "wbxpress"
ORDER BY (data_length + index_length) DESC;

Leave a Reply

Your email address will not be published. Required fields are marked *