#31746 [Opn->Bgs]: mysql_connect returns: Can't create TCP/IP socket (10041)
| From: | georg@php.net | Date: | Fri, 28 Jan 2005 17:13:11 +0000 |
| Subject: | #31746 [Opn->Bgs]: mysql_connect returns: Can't create TCP/IP socket (10041) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-72993@lists.php.net to get a copy of this message | ||
ID: 31746
Updated by: georg@php.net
Reported By: gianni at comi dot it
-Status: Open
+Status: Bogus
Bug Type: MySQL related
Operating System: Windows 2003
PHP Version: 5.0.3
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2005-01-28 17:17:51] gianni at comi dot it
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 this bug report at http://bugs.php.net/?id=31746&edit=1