如何查询mysql里某张表所有记录所占内存?我想比较一下innodb表和myisam表所占用内存大小,谢谢
mysql> show table status \G;
*************************** 1. row ***************************
Name: innodb
Engine: InnoDB
Version: 10
Row_format: Compact
Rows: 0
Avg_row_length: 0
Data_length: 16384
Max_data_length: 0
Index_length: 0
Data_free: 0
Auto_increment: 1
Create_time: 2010-10-07 23:21:25
Update_time: NULL
Check_time: NULL
Collation: latin1_swedish_ci
Checksum: NULL
Create_options:
Comment: InnoDB free: 4096 kB
1 row in set (0.00 sec)
ERROR:
No query specified
来源:http://www.soidc.net/discuss/14/090621/15/719934_1.html
mysql> show table status \G;
*************************** 1. row ***************************
Name: innodb
Engine: InnoDB
Version: 10
Row_format: Compact
Rows: 0
Avg_row_length: 0
Data_length: 16384
Max_data_length: 0
Index_length: 0
Data_free: 0
Auto_increment: 1
Create_time: 2010-10-07 23:21:25
Update_time: NULL
Check_time: NULL
Collation: latin1_swedish_ci
Checksum: NULL
Create_options:
Comment: InnoDB free: 4096 kB
1 row in set (0.00 sec)
ERROR:
No query specified
来源:http://www.soidc.net/discuss/14/090621/15/719934_1.html
作者:jackxiang@向东博客 专注WEB应用 构架之美 --- 构架之美,在于尽态极妍 | 应用之美,在于药到病除
地址:https://jackxiang.com/post/3605/
版权所有。转载时必须以链接形式注明作者和原始出处及本声明!
评论列表