Bug #55489 [Com]: mysql_connect can't connect on ::1

From: Date: Mon, 05 Sep 2011 13:10:46 +0000
Subject: Bug #55489 [Com]: mysql_connect can't connect on ::1
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-163298@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 Comment by: wojtosz at gmail dot com Reported by: wojtosz at gmail dot com Summary: mysql_connect can't connect on ::1 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 New Comment: Client Library version: 5.5.13 libmysql is in use. I'm using MySQL 5.5.13. 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 (#163298) next »