Connecting Tech Pros Worldwide Help | Site Map

PHP + MySQL Access Denied

  #1  
Old July 17th, 2005, 05:17 AM
Andrew
Guest
 
Posts: n/a
Hi,

I keep getting an access denied error when trying
to connect to mysql using user@localhost. I can
connect just fine if I use the IP address instead
(ie user@192.168.1.5).

I granted "user" privileges for everything so I don't
see why that's the problem.

Is this an issue where "localhost" is not getting resolved
correctly?

I'm on Linux, BTW.

Thanks,

Andrew


  #2  
Old July 17th, 2005, 05:18 AM
Andreas Paasch
Guest
 
Posts: n/a

re: PHP + MySQL Access Denied


Andrew wrote:
[color=blue]
> Hi,
>
> I keep getting an access denied error when trying
> to connect to mysql using user@localhost. I can
> connect just fine if I use the IP address instead
> (ie user@192.168.1.5).
>
> I granted "user" privileges for everything so I don't
> see why that's the problem.
>
> Is this an issue where "localhost" is not getting resolved
> correctly?
>
> I'm on Linux, BTW.
>
> Thanks,
>
> Andrew[/color]

seems /etc/hosts doesn't have an entry as in:

localhost 192.168.1.5

--
Peace and long life ...
Registeret Linux user #292411
  #3  
Old July 17th, 2005, 05:18 AM
Andrew
Guest
 
Posts: n/a

re: PHP + MySQL Access Denied




Andreas Paasch wrote:
[color=blue]
> seems /etc/hosts doesn't have an entry as in:
>
> localhost 192.168.1.5
>[/color]

Thanks Andreas, I will have a look at that.

Andrew

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mysql: access denied adnan alsamari answers 2 July 20th, 2005 01:20 AM
Mysql: access denied adnan alsamari answers 2 July 20th, 2005 01:20 AM
MySQL Access Denied Question Kevin Goad answers 2 July 20th, 2005 12:28 AM
* HELP * MySQL Connection Issue - Access Denied!! Ryan Schefke answers 0 July 19th, 2005 11:41 PM