1、linux中查看文件大小
- select sum(DATA_LENGTH)+sum(INDEX_LENGTH) from information_schema.tables
- where table_schema='数据库名';
2、查看某个表的大小
select concat(round(sum(DATA_LENGTH/1024/1024),2),'M') from tables where table_schema=’数据库名’ AND table_name=’表名’;
2、查看某个表的大小
select concat(round(sum(DATA_LENGTH/1024/1024),2),'M') from tables where table_schema=’数据库名’ AND table_name=’表名’;