Bug #55489 [Opn->Fbk]: mysql_connect can't connect on ::1

From: Date: Thu, 25 Aug 2011 16:19:52 +0000
Subject: Bug #55489 [Opn->Fbk]: mysql_connect can't connect on ::1
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-162929@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=55489&edit=1 ID: 55489 Updated by: johannes@php.net Reported by: wojtosz at gmail dot com Summary: mysql_connect can't connect on ::1 -Status: Open +Status: Feedback Type: Bug Package: MySQL related Operating System: PLD Linux x86_64 PHP Version: 5.3.7 Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2011-08-25 16:19:37] johannes@php.net 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. ------------------------------------------------------------------------ [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

« previous php.bugs (#162929) next »