mysql show table status like mytable \g; *************************** 1. row *************************** name: mytable 表名 engine: innodb 存储引擎伟innodb version: 10 mysql版本 row_format: compact 行格式。有dynamic,fixed,compact等格式。d
mysql> show table status like ‘mytable’ \g;
*************************** 1. row ***************************
name: mytable 表名
engine: innodb 存储引擎伟innodb
version: 10 mysql版本
row_format: compact 行格式。有dynamic,fixed,compact等格式。dynamic是动态行,表字段里面宝航varchar,blob等不定长字段。fixed是定长行。compact是行压缩。
rows: 0 表中的行数
avg_row_length: 0 平均每行的字节数
data_length: 16384 整个表的数据量(字节)
max_data_length: 0 表最大的容量。0表示无限
index_length: 0 索引数据占用磁盘空间的大小
data_free: 10485760 表示已分配但还未被使用的空间大小。
auto_increment: null 下一个auto_increment的值
create_time: 2011-08-06 22:39:46 创建时间
update_time: null 更新时间
check_time: null 使用check table等命令时的检查时间
collation: utf8_general_ci 默认字符集和字符列排列顺序
checksum: null 如果启动,则表示整个表的校验和
create_options: max_rows=4294967295 avg_row_length=32 表创建时的选项
comment:
1 row in set (0.00 sec)
原文地址:mysql管理相关命令, 感谢原作者分享。