Description:
I have a webpage which is powered by Apache 1.3.29, PHP 4.3.3 and MySQL 4.0.16. The whole website is displayed in PHP, and uses a MySQL Database to retrieve the information. The problem surfaces after the site has been running a while, and most often when I have been using my computer to surf the net/ran some taxing applications on it. What happens is that suddenly, the MySQL database is unreachable, as if it crashed, the following text is displayed in the webbrowser:
Warning: mysql_connect(): Can't connect to MySQL server on 'localhost' (10055) in E:\Program\Apache Group\Apache2\htdocs\functions\dbconnect.php on line 2
Could not connect to localhost
It is as if the server suddenly becomes unrechable, the error is exactly the same as if there were not server running at all. However, if you use 'Mysqladmin version' it sometimes fails to connect, but usually is able to display the server as running. 'Mysqladmin reload' solves the problem temporarily (usually 5 minutes approximately), and likewise fails to connect at the first or second try, but is then succesful.
Worth to note is that I am a temporary host, and that the webserver ran flawlessly on Win2k with MySQL version 4.0.10.
Also, a reboot solves the problem for a while, but it recurs. I am also running it all from the drive E: .
How to repeat:
I have no idea really. It's a win98 server, uses MySQL for storing information and code, and php for displaying it.
Perhaps it's some kind of flooding-error?