Bug #16285 Updated: mysql connection uses bogus hostname
| From: | edink@php.net | Date: | Thu, 25 Apr 2002 21:28:27 +0000 |
| Subject: | Bug #16285 Updated: mysql connection uses bogus hostname | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-6006@lists.php.net to get a copy of this message | ||
ID: 16285
Updated by: edink@php.net
Reported By: x@psynchro.org
-Status: Critical
+Status: Closed
Bug Type: MySQL related
Operating System: Linux 2.4.7-10
PHP Version: 4.1.2
Assigned To: derick
New Comment:
See http://bugs.php.net/bug.php?id=16768
Previous Comments:
------------------------------------------------------------------------
[2002-04-24 09:55:14] derick@php.net
Yes, that works. But the mysql client just doesn't use the UNIX domain
sockets anymore... which is really what you want.
Derick
------------------------------------------------------------------------
[2002-04-24 09:42:17] yavuz@qweb.nl
I had the same problems. What I did was the following:
edit the file /etc/hosts
It contained:
127.0.0.1 localhost.localdomain localhost
It's now:
127.0.0.1 localhost localhost.localdomain
After reboot it works now.
------------------------------------------------------------------------
[2002-03-26 08:00:35] derick@php.net
Reproduced
------------------------------------------------------------------------
[2002-03-26 07:59:33] x@psynchro.org
[This is actually a 4.2.0rc1 issue, but there isn't an option for that
in the dropdown]
When connecting to mysql with php 4.2.0rc1, having specified
'localhost' as the hostname, 'localhost.localdomain' is actually passed
to the mysql server. (Reported in both the error message, and the mysql
log.)
This behaviour was seen initially when attempting to use ACID and
phpMyAdmin.
After reversion back to php 4.1.2, however, 'localhost' is again passed
as expected.
config args: --with-mysql --with-imap --with-kerberos --with-apxs
--with-imap-ssl --with-gd
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16285&edit=1