The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

MySQL Database Connection, CakePHP

Discussion in 'Database Discussions' 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:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    That's an access denied error. Make sure your database user credentials are correct.
     
  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:
    817
    Likes Received:
    22
    Trophy Points:
    18
    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.
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    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.
     
Loading...

Share This Page