Connecting Tech Pros Worldwide Help | Site Map

PHP + MySQL Access Denied

Andrew
Guest
 
Posts: n/a
#1: Jul 17 '05
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


Andreas Paasch
Guest
 
Posts: n/a
#2: Jul 17 '05

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
Andrew
Guest
 
Posts: n/a
#3: Jul 17 '05

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