Edit report at https://bugs.php.net/bug.php?id=55489&edit=1

 ID:                 55489
 Updated by:         johan...@php.net
 Reported by:        wojtosz at gmail dot com
 Summary:            mysql_connect can't connect on ::1
 Status:             Open
 Type:               Bug
 Package:            MySQL related
 Operating System:   PLD Linux x86_64
 PHP Version:        5.3.7
 Block user comment: N
 Private report:     N

 New Comment:

Are you using libmysql or myslqnd? (check "Client Library version" in phpinfo's 
MySQL boxes) And which MySQL server? MySQL didn't support IPv6 until version 
5.5.


Previous Comments:
------------------------------------------------------------------------
[2011-08-23 12:21:58] wojtosz at gmail dot com

Description:
------------
mysql_connect can't connect on ::1

Test script:
---------------
$ cat ./x.php 
<?php
mysql_connect('::1', 'mysql', 'SECPASS') or die(mysql_error());
?>

$ php -f ./x.php
PHP Warning:  mysql_connect(): Can't connect to local MySQL server through 
socket '1' (2) in /home/users/wojtosz/x.php on line 2

Warning: mysql_connect(): Can't connect to local MySQL server through socket 
'1' (2) in /home/users/wojtosz/x.php on line 2
Can't connect to local MySQL server through socket '1' (2)

Expected result:
----------------
proper mysql server handler.

Actual result:
--------------
PHP Warning:  mysql_connect(): Can't connect to local MySQL server through 
socket '1' (2) in /home/users/wojtosz/x.php on line 2

Warning: mysql_connect(): Can't connect to local MySQL server through socket 
'1' (2) in /home/users/wojtosz/x.php on line 2
Can't connect to local MySQL server through socket '1' (2)


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=55489&edit=1

Reply via email to