MySQL DB sizes in GB

SELECT table_schema AS "Database", 
SUM(data_length + index_length) / 1024 / 1024 / 1024 AS "Size (GB)" 
FROM information_schema.TABLES GROUP BY table_schema;

+--------------------+------------------+
| Database           | Size (GB)        |
+--------------------+------------------+
| db1                | 311.224670410156 |
| db2                | 149.395034790039 |
+--------------------+------------------+

Do you have any question to us?

Contact us and we'll get back to you as soon as possible.