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

    Joined:
    Jul 5, 2013
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,407
    Likes Received:
    1,953
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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:

    Code:
    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...
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