dongnai5905 2014-01-03 21:11
浏览 54
已采纳

当进入“浏览”时,phpMyAdmin通过执行COUNT(*)来挂起服务器

I have a very large table (~115 million rows). When I click it in phpMyAdmin everything blows up. By doing a SHOW PROCESSLIST; I can see that it's because phpMyAdmin has tried to execute the following query:

SELECT COUNT(*) FROM `friend_map`.`connections`

Since this is an innoDB table this requires a table scan and the server errors out before returning.

It gives the error:

Error in Processing Request
Error code: 504
Error text: Gateway Timeout

I have to manually kill the mysql process or the entire database remains unresponsive.

Is there a way to tell phpMyAdmin not to execute this query?

Edit: I should probably also note that I'm in the middle of a server migration. This worked fine with phpMyAdmin 3.5.1 but now I've switched to new servers and this error is happening on phpMyAdmin 4.1.3.

  • 写回答

1条回答 默认 最新

  • dongmibeng5885 2014-01-03 21:41
    关注

    This appears to be an open issue with phpMyAdmin 4.x. More details are here: http://sourceforge.net/p/phpmyadmin/bugs/4027/?page=0

    I was able to fix this by adding $force_exact = false; to line 573 of libraries/Table.class.php.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 ROS Turtlebot3 多机协同自主探索环境时遇到的多机任务分配问题,explore节点
  • ¥15 Matlab怎么求解含参的二重积分?
  • ¥15 苹果手机突然连不上wifi了?
  • ¥15 cgictest.cgi文件无法访问
  • ¥20 删除和修改功能无法调用
  • ¥15 kafka topic 所有分副本数修改
  • ¥15 小程序中fit格式等运动数据文件怎样实现可视化?(包含心率信息))
  • ¥15 如何利用mmdetection3d中的get_flops.py文件计算fcos3d方法的flops?
  • ¥40 串口调试助手打开串口后,keil5的代码就停止了
  • ¥15 电脑最近经常蓝屏,求大家看看哪的问题