统计MySQL数据库大小

一条简单的语句就可以:

SELECT table_schema AS "DBName", sum( data_length + index_length ) AS "DBSize(Bytes)"
FROM information_schema.TABLES GROUP BY table_schema
原文地址:https://www.cnblogs.com/eastson/p/2877014.html