|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-11-08 20:29 UTC] tony2001@php.net
[2004-11-09 11:04 UTC] it at videinfra dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 23:00:01 2025 UTC |
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"; ?>