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!

Database Connection Error

Discussion in 'General Discussion' started by osyrys14, Aug 1, 2013.

  1. osyrys14

    osyrys14 Member

    Jul 5, 2013
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    DataCenter Provider
    The site is getting Error establishing a database connection when trying to access it. I've checked the username and password, and it's not that. Where are logs to check to see what's happening, or if you have an idea what it might be...
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello :)

    I moved this post into it's own thread for you.

    This issue can occur if you have sql.safe_mode enabled on your php.ini file. You can verify this with the following command:

    grep sql.safe_mode /usr/local/lib/php.ini
    Otherwise, check to see if the database username is added to the database, and make sure the password for the database username matches what is used in the script configuration file.

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

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