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: No 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: I'm using libmysql (checked by strace: /usr/lib64/libmysqlclient.so.18.0.0) In MySQL 5.5.28 the problem is still present. # netstat -nlp | grep tcp 0 0 ::1:3306 :::* LISTEN 5988/mysqld Previous Comments: ------------------------------------------------------------------------ [2013-02-18 00:34:59] php-bugs at lists dot php dot net No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. ------------------------------------------------------------------------ [2011-09-05 13:10:46] wojtosz at gmail dot com Client Library version: 5.5.13 libmysql is in use. I'm using MySQL 5.5.13. ------------------------------------------------------------------------ [2011-08-25 16:19:37] johan...@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