第一步mysql> use information_schema; 第二步mysql> select data_length,index_length -> from tables where -> table_schema='DBNAME' -> and table_name = 'TABLENAME'; 或者mysql> select concat(round(sum(data_length/1024/1024),2),'MB') as data_length_MB, -> concat(round(sum(index_length/1024/1024),2),'MB') as index_length_MB -> from tables where -> table_schema='DBNAME' -> and table_name = 'TABLENAME';
Copyright © 广州京杭网络科技有限公司 2005-2024 版权所有 粤ICP备16019765号
广州京杭网络科技有限公司 版权所有