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.

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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    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:

    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.
     
Loading...

Share This Page