Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make phpMyAdmin show exact number of records for InnoDB tables?

Is there any way to make phpMyAdmin show exact number of records for InnoDB tables?

I know why InnoDB has different number of records based on interpretation because it's a transactional engine but SQLBuddy is showing the exact number of records for InnoDB tables so I think there is a way for phpMyAdmin to do the same.

How can I do this?

like image 312
datasn.io Avatar asked Oct 20 '25 14:10

datasn.io


1 Answers

Just found the answer on this thread: PHPMyAdmin - Total record count varies

Seems adding a configuration parameter in config.inc.php does the trick: http://www.kavoir.com/2012/07/make-phpmyadmin-show-exact-number-of-records-for-innodb-tables.html

Just add this line in config.inc.php:

$cfg['MaxExactCount'] = 2000000;

So that any InnoDB table with less than 2000000 rows will have an exact number of rows displayed.

Make this number large enough and all InnoDB tables in your database will have an exact number of rows on phpMyAdmin database page.

like image 158
datasn.io Avatar answered Oct 23 '25 05:10

datasn.io



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!