|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-08-25 16:19 UTC] johannes@php.net
[2011-08-25 16:19 UTC] johannes@php.net
-Status: Open
+Status: Feedback
[2011-09-05 13:10 UTC] wojtosz at gmail dot com
[2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
[2013-02-18 07:51 UTC] wojtosz at gmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 17:00:01 2025 UTC |
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)