CDbException

CDbConnection failed to open the DB connection: SQLSTATE[28000] [1045] Access denied for user 'zikbay_bang'@'localhost' (using password: YES)

/home/zikbay/public_html/thailand.zikbay.com/yii-1.1.7.r3135/framework/db/CDbConnection.php(348)

336                 throw new CDbException(Yii::t('yii','CDbConnection.connectionString cannot be empty.'));
337             try
338             {
339                 Yii::trace('Opening DB connection','system.db.CDbConnection');
340                 $this->_pdo=$this->createPdoInstance();
341                 $this->initConnection($this->_pdo);
342                 $this->_active=true;
343             }
344             catch(PDOException $e)
345             {
346                 if(YII_DEBUG)
347                 {
348                     throw new CDbException(Yii::t('yii','CDbConnection failed to open the DB connection: {error}',
349                         array('{error}'=>$e->getMessage())),(int)$e->getCode(),$e->errorInfo);
350                 }
351                 else
352                 {
353                     Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException');
354                     throw new CDbException(Yii::t('yii','CDbConnection failed to open the DB connection.'),(int)$e->getCode(),$e->errorInfo);
355                 }
356             }
357         }
358     }
359 
360     /**

Stack Trace

#12
+
 /home/zikbay/public_html/thailand.zikbay.com/index.php(25): CApplication->run()
20     )
21 {
22     require_once(dirname(__FILE__).'/protected/modules/install/install.php');
23 }else{
24     require_once($yii);
25     Yii::createWebApplication($config)->run();
26     
27 }
2014-11-28 20:15:21 Apache/2.2.29 (Unix) mod_ssl/2.2.29 OpenSSL/1.0.1e-fips mod_bwlimited/1.4 Yii Framework/1.1.7