1.先手动收集下统计信息,再利用以下语法查看指定库数据量大小估算值
select table_schema,sum(data_length)/1024/1024 as data_length,sum(index_length)/1024/1024 as index_length,sum(data_length+index_length)/1024/1024 as sum from information_schema.tables where table_schema = “$table_name” group by table_schema;
2.具体值以监控为准