From:             gianni at comi dot it
Operating system: Windows 2003
PHP version:      5.0.3
PHP Bug Type:     MySQL related
Bug description:  mysql_connect returns: Can't create TCP/IP socket (10041)

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


-- 
Edit bug report at http://bugs.php.net/?id=31746&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=31746&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=31746&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=31746&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=31746&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=31746&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=31746&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=31746&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=31746&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=31746&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=31746&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=31746&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=31746&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=31746&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=31746&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=31746&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=31746&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=31746&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=31746&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=31746&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=31746&r=mysqlcfg

Reply via email to