php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16526 MySQL pconnect behaviour changed
Submitted: 2002-04-10 03:34 UTC Modified: 2002-04-30 06:26 UTC
From: willo at wack dot co dot za Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.1.2 OS: Linux RH 7.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: willo at wack dot co dot za
New email:
PHP Version: OS:

 

 [2002-04-10 03:34 UTC] willo at wack dot co dot za
Hi,

I just upgraded from php 4.0.6 to php-4.2.0RC2, and all of a sudden I get failures when trying to connect to the mySQL server. It now tries to connect as 'user@localhost.localdomain' where previously it used 'user@localhost'.

Regards,
  Willo

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-10 04:52 UTC] derick@php.net
This is actually good news, means that I'm not alone. Can you please mail me your /etc/hosts file?

Derick
 [2002-04-10 08:02 UTC] willo at wack dot co dot za
Hi Derick,

Thanks for the quick response. My hosts file:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1	localhost.localdomain	localhost
 [2002-04-18 00:03 UTC] patrick at musehub dot com
Dear Derick,

In my case it prompts as:
user@127.0.0.1 instead of user@localhost!

I have to add the host access right in MySQL 4.0.

Any better solution?

Patrick Tsang
 [2002-04-30 04:55 UTC] ledjon at ledjon dot com
This problem still seems to exist in the 4.2.0 final release.
 [2002-04-30 06:26 UTC] sniper@php.net
This problem will be solved in 4.2.1. You can fix it yourself by replacing the configure file with one found here: http://www.edin.dk/php/configure.gz

(and delete config.cache and run configure with your options
again)

--Jani

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Sep 08 14:00:01 2025 UTC