To overcome this issue, simply add the following line in your php file at the top:
- Code: Select all
@ini_set("mysql.connect_timeout", -1);
This php code will make the database connection time unlimited and will allow you to process heavy data on your page.