查看Mysql的数据存储命令(Windows服务器)
sql
SELECT
table_schema AS '数据库名',
ROUND(SUM(data_length + index_length) / 1024 / 1024 / 1024, 2) AS '总大小(GB)'
FROM information_schema.tables
WHERE table_schema = '数据库名'
GROUP BY table_schema;