This shows you the differences between two versions of the page.
mysql-notes [2020/06/13 15:10] |
mysql-notes [2020/06/13 15:10] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== DB Size ====== | ||
+ | < | ||
+ | SELECT table_schema " | ||
+ | , SUM(data_length + index_length) / (1024 * 1024) " | ||
+ | FROM information_schema.TABLES | ||
+ | GROUP BY table_schema; | ||
+ | </ |