Jump to content

Recommended Posts

wow. I know the reason, but I never thought I'd ever see it actually happen. You need to add mysql_close($mysq_conn); (change $mysql_conn) to what your connection is named) at the bottom of all your scripts (when you're done pulling the queries.  This should fix that issue. what's happening is you're getting too many site hits at the same time, and they are causing a connection bottle neck.

Link to comment
https://forums.phpfreaks.com/topic/109199-mysql-error/#findComment-560147
Share on other sites

wow. I know the reason, but I never thought I'd ever see it actually happen. You need to add mysql_close($mysq_conn); (change $mysql_conn) to what your connection is named) at the bottom of all your scripts (when you're done pulling the queries.  This should fix that issue. what's happening is you're getting too many site hits at the same time, and they are causing a connection bottle neck.

 

no not really...unless the script being executed takes long enough time to execute that he happens to be getting a whole bunch of requests at the same time...the connection is automatically closed at the end of the script.  The only time it's really useful to use mysql_close is if you're done with mysql at the top of your script and you have a (large) amount of code left to run, it will just free it faster. 

Link to comment
https://forums.phpfreaks.com/topic/109199-mysql-error/#findComment-560211
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.