Bug #11863 Updated: Cannot connect to mysql server

From: Date: Wed, 21 Nov 2001 00:36:43 +0000
Subject: Bug #11863 Updated: Cannot connect to mysql server
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-71141@lists.php.net to get a copy of this message
ID: 11863 Updated by: mfischer Reported By: veins@kheos.net Status: Open Bug Type: MySQL related Operating System: Unix PHP Version: 4.0.6 New Comment: Thats the behaviuor of mysql. Explicit address has to be given to establish a TCP connection. If you can't connect through the socket it is definitive a configuration issue. If in doubt, upgrade to latest RC http://www.php.net/~zeev/php-4.1.0RC3.tar.gz Please ask such questions at php-general@lists.php.net first. Not really a bug, bogus. Previous Comments: ------------------------------------------------------------------------ [2001-07-04 15:48:43] veins@kheos.net By the way, i've been testing a few things and php will connect to the database if i trick it into using tcp connection instead of socket connection and using LAN ip address instead of 'localhost' or loopback IP address. Won't work: <? mysql_connect("localhost:3306", "me","mypass"); ?> Won't work either: <? mysql_connect("localhost:/path/to/socket", "me","mypass"); ?> Works (when i define sql to be LAN ip address of server): <? mysql_connect("sql", "me","mypass"); ?> ------------------------------------------------------------------------ [2001-07-04 15:41:18] veins@kheos.net of course ;) http://www.kheos.net/info.php I'm making it right now so by the time you see this post it'll be available. Best regards, Veins ------------------------------------------------------------------------ [2001-07-04 13:35:14] derick@php.net Hello, can you make a page with <?php phpinfo(); ?> available to us? Derick ------------------------------------------------------------------------ [2001-07-03 16:44:53] veins@kheos.net Yeah, the server is actually running as i can connect to it from console. The socket is set srwxrwxrwx so it is also ok i presume. The exact same configuration used to work with php-4.0.5 :/ ------------------------------------------------------------------------ [2001-07-03 16:41:17] veins@kheos.net Yeah, the server is actually running as i can connect to it from console. The socket is set srwxrwxrwx so it is also ok i presume. The exact same configuration used to work with php-4.0.5 :/ ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/?id=11863 Edit this bug report at http://bugs.php.net/?id=11863&edit=1

« previous php.dev (#71141) next »