Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

MySQL Database Connection, CakePHP

Discussion in 'Database Discussion' started by taonthetrack, Mar 11, 2014.

  1. taonthetrack

    taonthetrack Registered

    Joined:
    Mar 11, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hello everyone. I ran into a problem today working on my site. For some reason it won't connect to my database. It worked fine yesterday but then when I tried to work on it today it threw an error at me. I'm using CakePHP.

    "The database server returned this error: SQLSTATE[HY000] [1045]"

    I didn't make any changes so I'm not sure why this is happening.

    Thanks for the help.
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    829
    Likes Received:
    26
    Trophy Points:
    178
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    That's an access denied error. Make sure your database user credentials are correct.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. taonthetrack

    taonthetrack Registered

    Joined:
    Mar 11, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    My db credentials are correct.
     
  4. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    829
    Likes Received:
    26
    Trophy Points:
    178
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    Are you connecting to a remote database, where perhaps you need to allow remote access? The error is access denied - not many things it can really be. You could also try removing the db user, recreating it, and re-adding it to the db.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    Make sure you are using the database username/password and not the cPanel username/password for authentication. Also ensure that the user is added to the database. You may want to contact your web hosting provider if the issue persists and you do not have root access to investigate further.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice