Connecting Tech Pros Worldwide Help | Site Map

PHP + MySQL Access Denied

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 04:17 AM
Andrew
Guest
 
Posts: n/a
Default PHP + MySQL Access Denied

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, 04:18 AM
Andreas Paasch
Guest
 
Posts: n/a
Default 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, 04:18 AM
Andrew
Guest
 
Posts: n/a
Default 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

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.