Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

check database size in mysql

// 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;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #database #size #mysql
ADD COMMENT
Topic
Name
3+3 =