mysql 得到各databases的大小 SELECT table_schema "DB Name", ROUND(SUM(data_length + index_length) / 1024 / 1024, 1) "DB Size in MB" FROM information_schema.tables GROUP BY table_schema; mysql 得到各个table的大小 SELECT table_name AS “Table”, round(((data_length + index_length) / 1024 / 1024), 2) as size FROM information_schema.TABLES WHERE table_schema = “YOUR_DATABASE_NAME”