查看碎片索引信息 : show table status like 'table_name'; Index_length 代表索引的数量 Data_free 代表碎片数量 清理碎片:optimize table table_name