可以通過以下SQL語句查看數據庫的數據量大?。?/p>
SELECT table_schema "Database Name", ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) "Size in MB" FROM information_schema.tables GROUP BY table_schema;
這條語句將返回每個數據庫的數據量大?。ㄒ訫B為單位)。