从MySQL数据库选择300,000行时出现504网关超时错误 [英] 504 Gateway Timeout error while selecting 300,000 rows from MySQL database
本文介绍了从MySQL数据库选择300,000行时出现504网关超时错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有30000行的餐桌订单.我正在使用具有2GB RAM的Linode服务器
I have a table orders with 30000rows. I am using Linode Server with 2GB RAM
但是当我使用phpmyadmin执行查询时,它给了我504 Gatetimeout错误
but when i executed my query using phpmyadmin it give me 504 Gatetimeout Error
SELECT * FROM `orders`
我不明白这是什么问题?我收到该错误,您可以看到下面的图片
I don't understand what's is the problem? i am getting that error you can see the image below
推荐答案
nano /usr/share/phpMyAdmin/libraries/config.default.php
添加/
$cfg['ExecTimeLimit'] = 1800000;
我希望你能摆脱它.
这篇关于从MySQL数据库选择300,000行时出现504网关超时错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文