当前位置:Gxlcms > mysql > 查询mysql所有表的大小_MySQL

查询mysql所有表的大小_MySQL

时间:2021-07-01 10:21:17 帮助过:28人阅读

先用

use information_schema;
SELECT sum(DATA_LENGTH+INDEX_LENGTH) as size,table_name FROM tables where table_schema='数据库名' group by table_name order by size desc;


哪些表数据量大就一目了然了噢

人气教程排行