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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

CDbConnection failed to open the DB connection

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

  1. imran_khan

    imran_khan Well-Known Member

    Joined:
    Jun 10, 2013
    Messages:
    154
    Likes Received:
    0
    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:
    0
    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:
    38,658
    Likes Received:
    1,419
    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.
     
Loading...

Share This Page