mysql get database size

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;

Views All Time
Views All Time
187
Views Today
Views Today
1

Leave a Reply

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