Bug #16285 Updated: mysql connection uses bogus hostname
| From: | derick@php.net | Date: | Wed, 24 Apr 2002 13:55:14 +0000 |
| Subject: | Bug #16285 Updated: mysql connection uses bogus hostname | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-5822@lists.php.net to get a copy of this message | ||
ID: 16285
Updated by: derick@php.net
Reported By: x@psynchro.org
Status: Critical
Bug Type: MySQL related
Operating System: Linux 2.4.7-10
PHP Version: 4.1.2
Assigned To: derick
New Comment:
Yes, that works. But the mysql client just doesn't use the UNIX domain
sockets anymore... which is really what you want.
Derick
Previous Comments:
------------------------------------------------------------------------
[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