简体   繁体   中英

Can I change phpMyAdmin's default queries?

I have several large innodb tables (over 500M records). When I click on one to view it, the system takes forever (a couple minutes) to return the first 30 rows. I went into my shell program and saw that phpMyAdmin was doing a select count(*) from table. This DIES in innodb. I do have the table indexed by the primary key which is an auto-increment id.

Is there any way to change this so that phpMyAdmin is actually useful for large innoDB tables? It worked fine for myIsam as count(*) performs well there. With innodb you need to count an indexed column, such as count(id).

如果您的phpMyAdmin版本已过时,请升级。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM