0

After converted a table from MyISAM to InnoDB, "show table status" command returns different row numbers to correct figure showed by "count(*)" command. That's probably due to compact row format used in InnoDB tables.

I wonder if there is a way to quickly get correct row numbers for all tables on InnoDB engine by "show table status" command just like what it shows for MyISAM tables.

jack
  • 1,725
  • 5
  • 21
  • 25

1 Answers1

0

I think you are out of luck. From the fine manual at:

http://dev.mysql.com/doc/refman/5.1/en/show-table-status.html

The number of rows. Some storage engines, such as MyISAM, store the exact count. For other storage engines, such as InnoDB, this value is an approximation, and may vary from the actual value by as much as 40 to 50%. In such cases, use SELECT COUNT(*) to obtain an accurate count.

gm3dmo
  • 10,057
  • 1
  • 42
  • 36