PHP + MySQL Access Denied

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andrew

    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


  • Andreas Paasch

    #2
    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

    Comment

    • Andrew

      #3
      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

      Comment

      Working...