查看MySQL表占用空间大小

mysql> use information_schema; 

Database changed

mysql>  select data_length,index_length  

    ->  from tables where 

    ->  table_schema='数据库名' 

    ->  and table_name = '表名'; 

+-------------+--------------+

| data_length | index_length |

+-------------+--------------+

|    3541554 |            0 |

+-------------+--------------+

扫描二维码关注公众号,回复: 1181039 查看本文章

1 row in set (0.00 sec)

有关information_schema系统数据库的详细信息:http://dev.mysql.com/doc/refman/5.1/zh/information-schema.html

猜你喜欢

转载自xp9802.iteye.com/blog/2115757
今日推荐