#30719 [Opn->Bgs]: can't connect to MySQL after a number of requests

From: Date: Mon, 08 Nov 2004 19:29:38 +0000
Subject: #30719 [Opn->Bgs]: can't connect to MySQL after a number of requests
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-68817@lists.php.net to get a copy of this message
ID: 30719 Updated by: tony2001@php.net Reported By: it at videinfra dot com -Status: Open +Status: Bogus Bug Type: MySQL related Operating System: W2K,WinXp, Win 2003 Srv PHP Version: 4.3.9 New Comment: Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. Duplicate of #30666. Previous Comments: ------------------------------------------------------------------------ [2004-11-08 15:56:50] it at videinfra dot com Description: ------------ I simultaneously run one, absolutely indentical script on two different servers, one running Linux and another Windows. The script on both machines connects to the remote MySQL server on another Linux machine. The PHP script on Linux machine works fine, while the script on Windows machine gives an error - Can't connect to MySQL server on '10.0.1.4' (10048) - after a number of requests. I believe that this implies a bug in PHP on Windows, because as seen from the test described above, MySQL connection limit COULD NOT BE THE CAUSE, since the script on the Linux machine continues working with the same database without any problem. Also, PHP configuration files on both platforms are identical. Reproduce code: --------------- <? $conn = mysql_connect ( '10.0.1.4', 'root', '') or die("Could not connect: " . mysql_error()); mysql_select_db('lub2', $conn); $res = mysql_query("SELECT title FROM pages_lv0 WHERE id = 1", $conn) or die("Invalid query: " . mysql_error()); mysql_close($conn); echo "ok"; ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30719&edit=1

« previous php.bugs (#68817) next »