phpMyAdmin和大表

web*_*ear 7 phpmyadmin

尝试使用大表访问数据库(此数据库中至少有15个表不少于100万个,最多为2000万个).一旦我选择数据库 - phpMyAdmin加载至少5分钟(以及更多).

如何加快表格加载页面的速度?

Rya*_*yan 8

将这些行粘贴到phpMyAdmin安装中的config.inc.php文件的底部:

//http://future500.nl/phpmyadmin-slow-on-startup/:
$cfg['MaxExactCountViews'] = 0;//disable trying to count the number of rows in any view
$cfg['MaxExactCount'] = 0;//disable correcting the InnoDB estimates
Run Code Online (Sandbox Code Playgroud)

谢谢future500.nl!

我希望在我意外删除所有数据之前几小时就找到了这个修复程序.:-(

  • 如果使用phpmyadmin监视多个服务器,请注意这是全局变量.我试过$ cfg ['Servers'] [$ i] ['MaxExactCountViews'] = 0; 并且无法使其正常工作.后来才知道我无法为每台服务器设置此值.希望这有助于其他人. (6认同)

man*_*ada -3

phpMyAdmin 是基于浏览器的网页工具。为什么不尝试其他一些工具来处理数据库,例如sqlyog