Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

check all database size in gb mysql

# Check All Database Size in MB

SELECT table_schema AS "Database", 
ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) AS "Size (MB)" 
FROM information_schema.TABLES 
GROUP BY table_schema;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #database #size #gb #mysql
ADD COMMENT
Topic
Name
1+7 =