Jump to content


This topic is now archived and is closed to further replies.


Mysqli problem when user continously hits F5 button

Recommended Posts



I have created a new database-driven website. I've installed php 5.1.1 and mysql 5.0

I'm working with the Mysqli connector.


Everything works fine. Except when a user starts tampering the website by continuously hitting the F5 button.


On the intro-page of the website, a lot of queries are being fired against the database. When the user hits F5 quickly for, let's say, 50 times the database times out and I get the ugly error:


"Warning: mysqli::mysqli() [function.mysqli]: (HY000/2003): Can't connect to MySQL server on 'localhost' (10048) in..."


After the database 'hangs' and I am unable to connect to it for at least 30 seconds...


Any idea why the tampering makes my database go down for a few secs ?


best regards!



Share this post

Link to post
Share on other sites

I think this has to do with a TCP issue related to running MySQL on a Windows box. Sorry I can't help with any other info.

Share this post

Link to post
Share on other sites


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.