
在 AWS RDS 中,我們的資料庫總共使用了 5 GB 中的 75 MB,
mysql> SELECT sum((data_length+index_length)/power(1024,2)) tablesize_mb FROM information_schema.tables order by tablesize_mb desc;
+-------------------+
| tablesize_mb |
+-------------------+
| 72.25519466400146 |
+-------------------+
1 row in set (0.03 sec)
實例部分有26個日誌,全部只有幾kb
但我的可用空間 < 500 mb
是什麼導致了這種差異?