Without any changes on database I got very different rows count on my tables.
What can cause this?


Server version: 5.1.63-cll
Engine: InnoDB
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Unlike MyISAM tables, InnoDB tables don’t keep track of how many rows the table contains.
Because of this, the only way to know the exact number of rows in an InnoDB table is to inspect each row in the table and accumulate a count. Therefore, on large InnoDB tables, performing a
SELECT COUNT(*) FROM innodb_tablequery can be very slow because it does a full table scan to get the number of rows.phpMyAdmin uses a query like
SHOW TABLE STATUSto get an estimated count of the number of rows in the table from the engine (InnoDB). Since it’s just an estimate, it varies each time you call it, sometimes the variations can be fairly large, and sometimes they are close.Here is an informative blog post about COUNT(*) for InnoDB tables by Percona.
The MySQL manual page for SHOW TABLE STATUS states:
The page on InnoDB restrictions goes into some more detail:
SHOW TABLE STATUS does not give accurate statistics on InnoDB tables, except for the physical size reserved by the table. The row count is only a rough estimate used in SQL optimization.