|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-01-28 18:13 UTC] georg@php.net
[2005-01-28 18:38 UTC] gianni at comi dot it
[2005-01-28 20:26 UTC] gianni at comi dot it
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 16:00:01 2025 UTC |
Description: ------------ On Windows 2003 and IIS6, using php in cgi mode. mysql_connect returns this "warning": Warning: Can't create TCP/IP socket (10041) in.... This happens only on Windows 2003. Example: mysql_connect( "localhost", "rightuser", "rightpass" ); mysql_connect( "127.0.0.1", "rightuser", "rightpass" ); mysql_connect( "remotehosname", "rightuser", "rightpass" ); I get always the same error Reproduce code: --------------- if (!($m_link = mysql_connect( $DBhostname, $DBuserName, $DBpassword ))) { db_err ("db connect error"); } Actual result: -------------- Warning: mysql_connect() [function.mysql-connect]: Can't create TCP/IP socket (10041) in F:\Webs\test.php on line 21