Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

504 Gateway Timeout error while selecting 300,000 rows from MySQL database

Tags:

sql

mysql

laravel

I have a table orders with 30000rows. I am using Linode Server with 2GB RAM

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

enter image description here

like image 373
Shahid Ahmad Avatar asked Apr 19 '26 23:04

Shahid Ahmad


1 Answers

Add the following line to the file /etc/nginx/nginx.conf in the http{} block:
fastcgi_read_timeout 360;

Restart nginx :
sudo service nginx restart

like image 155
Nam Sama Avatar answered Apr 21 '26 12:04

Nam Sama



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!