
Untitled
By: a guest on
May 2nd, 2012 | syntax:
None | size: 0.80 KB | hits: 22 | expires: Never
mysql> SELECT table_schema "Data Base Name", sum( data_length + index_length ) / 1024 / 1024 "Data Base Size in MB", sum( data_free )/ 1024 / 1024 "Free Space in MB" FROM information_schema.TABLES GROUP BY table_schema;
+--------------------+----------------------+------------------+
| Data Base Name | Data Base Size in MB | Free Space in MB |
+--------------------+----------------------+------------------+
| information_schema | 0.00878906 | 0.00000000 |
| mysql | 1.37921619 | 0.00000000 |
| ndbinfo | 0.00993729 | 0.00000000 |
| performance_schema | 0.00000000 | 0.00000000 |
| tmp | 39.62500000 | 0.00000000 |
+--------------------+----------------------+------------------+