Home

Published

- 1 min read

check database size

img of check database size

The solution for this is noted below

check database size

Solution

   // QUERY

SELECT table_schema AS "Database Name",
  ROUND(SUM(data_length + index_length) / 1024 / 1024, 2)
  AS "Size in (MB)"
  FROM information_schema.TABLES
  GROUP BY table_schema;

Try other methods by searching on the site. That is if this doesn’t work