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.

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.

Share This Page