一条简单的语句就可以:
SELECT table_schema AS "DBName", sum( data_length + index_length ) AS "DBSize(Bytes)" FROM information_schema.TABLES GROUP BY table_schema
一条简单的语句就可以:
SELECT table_schema AS "DBName", sum( data_length + index_length ) AS "DBSize(Bytes)" FROM information_schema.TABLES GROUP BY table_schema