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!

CDbConnection failed to open the DB connection

Discussion in 'Database Discussion' started by imran_khan, Oct 10, 2013.

  1. imran_khan

    imran_khan Well-Known Member

    Joined:
    Jun 10, 2013
    Messages:
    154
    Likes Received:
    1
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Hello,

    Im getting below error.

    Connection failed to open the DB connection: SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: NO)

    /home/xyz/public_html/yii/framework/db/CDbConnection.php(382)


    Main.php file details:-

    db'=>array(
    'connectionString' => 'mysql:host=127.0.0.1;port=3306;dbname=xyz_pqr',
    'emulatePrepare' => true,
    'username' => 'root',
    'password' => '',
    'charset' => 'utf8',

    Software details:-

    CentOS release 6.3 (Final)
    Apache/2.2.23
    PHP 5.3.21
    mysql 5.1.66
    VPS on virtuozzo with cpanel.

    Please guide/suggest me on the same.

    Thanks,
    Imran.
     
  2. imran_khan

    imran_khan Well-Known Member

    Joined:
    Jun 10, 2013
    Messages:
    154
    Likes Received:
    1
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Hello,

    Resolved.

    Thanks,
    Imran Khan.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    I am happy to hear that you were able to resolve the issue. Would you mind sharing the resolution with us?

    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