Re: Problem w/ mysql_pconnect

From: Date: Mon, 24 Jun 2002 08:49:41 +0000
Subject: Re: Problem w/ mysql_pconnect
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-20038@lists.php.net to get a copy of this message
php, is probably resolving localhost, to its' bound external ip, or something other than 127.0.0.1 (in your hosts file, make sure that localhost is in it.) or change the user's host in the mysql.user table to localhost.localdomain, which will work too. -- ======================================================================= Michael J. Ryan - tracker1[*at*]theroughnecks.com Roughneck BBS: http://www.theroughnecks.net telnet://theroughnecks.net ======================================================================= Y!: aztracker1 - aim: azTracker1 - icq: 4935386 - msn: see email One program for aim/icq/yahoo/msn/irc - http://www.trillian.cc/ "Paul D" <agonza04@bellsouth.net> wrote in message news:3D15F07D.7000103@bellsouth.net... > Guys, > > I appreciate your input very much. This machine is a standalone unit. > That's why I'm using "localhost". The user account has already been > set-up in MySQL with the correct privileges, and I'm able to login at > the console command prompt using "mysql -h localhost -u pauld -p > my_pwd", with no problem at all. That's why I'm assuming that the > problem lies somewhere else. > > Paul D wrote: > > I'm using PHP 4.2.0 with MYSQL 3.23. When I try to use either the > > mysql_connect or mysql_pconnect to access the database, I get the > > following error message: > > > > Access denied for user: 'pauld@localhost.localdomain' (Using password: YES) > > > > I have tried different user names and nothing seems to work. If I use > > the functions without any parameters, it'll work just fine, and when I > > try access directly from the console, it'll work fine also. The problem > > seems to lie with the function parameters, which is written as follows: > > > > $db = mysql_pconnect("localhost", "pauld", "any_pwd") or > > die($php_errormsg); > > > > Any suggestions would be very much appreciated. > > >

« previous php.db (#20038) next »