mysql 查看表数据大小
1. 数据 和 索引 所占据大小
use information_schema; select sum(DATA_LENGTH)+sum(INDEX_LENGTH) from tables where table_schema='数据库名';
2. mysql 所有数据 大小
use information_schema; select concat(round(sum(DATA_LENGTH/1024/1024),2),'M') from tables; -- 查询所有的数据大小
3.指定 表 库的大小
use information_schema; select concat(round(sum(DATA_LENGTH/1024/1024),2),'M') from tables where table_schema=’数据库名’ AND table_name=’表名’;
其他:http://www.cnblogs.com/diandiandidi/p/5582309.html