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!

Could not connect to database

Discussion in 'General Discussion' started by hoster22, Dec 22, 2004.

  1. hoster22

    hoster22 Member

    Feb 12, 2004
    Likes Received:
    Trophy Points:
    We have tried about 15 times to make a db and get nothing but this error listed.

    Could not connect to database, Make sure database details are correct

    This is not our first time making a db in cpanel I have mad many over the years but can't seem to make them now, is there some that changed in one of the latested updates or some thing?

    I need some help here with this one.

    ---- Richard ----
  2. haze

    haze Well-Known Member

    Dec 21, 2001
    Likes Received:
    Trophy Points:
    1. Log into WHM, and change the root mysql password ( Not the root server password ) and ensure it is NOT the same as your root password.

    2. Make sure mysql is running, if not, restart via WHM and look for errors in /var/log/messages

    3. Check your /etc/.my.cnf and make sure the username and password are not quoted. eg: "root" should be root with no "'s.
    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