title: MySQL server hang because of too many connection?
body: <p>I have setup a cronjob which request data from API every night and I can receive the results from API within 24 hours as the it has to process data, so I have to provide a call back url.</p>
  
  <p>I make around 1000 request per day. The problem starts when I start receiving response, since I get response one after another, the mysql server hangs and I am not even able to access my server as I get 504 Gateway Time out error.</p>
  
  <p>Is there anyway I can make it handle too many connection from same server and same user in MySQL. I am developing in PHP and using Codeigniter framework.</p>
  
  <p>Thanks for your help :)</p>