MySQL. Table size

SELECT
    table_name AS table_name,
    engine,
    ROUND(data_length/1024/1024,2) AS total_size_mb,
    table_rows
FROM
    information_schema.tables
WHERE
    table_schema=DATABASE(); //or just table_schema='table_name';

Leave a comment

You must be logged in to post a comment.