CDbException

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

/home/uspekh/uspekh.pro/docs/framework/db/CDbConnection.php(382)

370                 throw new CDbException('CDbConnection.connectionString cannot be empty.');
371             try
372             {
373                 Yii::trace('Opening DB connection','system.db.CDbConnection');
374                 $this->_pdo=$this->createPdoInstance();
375                 $this->initConnection($this->_pdo);
376                 $this->_active=true;
377             }
378             catch(PDOException $e)
379             {
380                 if(YII_DEBUG)
381                 {
382                     throw new CDbException('CDbConnection failed to open the DB connection: '.
383                         $e->getMessage(),(int)$e->getCode(),$e->errorInfo);
384                 }
385                 else
386                 {
387                     Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException');
388                     throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo);
389                 }
390             }
391         }
392     }
393 
394     /**

Stack Trace

#9
+
 /home/uspekh/uspekh.pro/docs/protected/controllers/frontend/MainController.php(155): CActiveRecord->__construct()
150     public function actionProjectShow(){
151                     echo '123';
152 }
153 
154     public function actionIndex() {
155         $pages = new Pages();
156         $data = array();
157         $pages->getTreePages(NULL, $data['tree'], true );
158         $pages->getTreePages(NULL, $data['tree_in'], true ,1 ,NULL, false);
159         $data['pages'] = $pages;
160         $data['doc_id_in'] = $this->get_id(Yii::app()->request->pathInfo, $data['tree_in'], -1);
#17
+
 /home/uspekh/uspekh.pro/docs/protected/behaviors/WebApplicationEndBehavior.php(24): CApplication->run()
19         
20         // обрабатываем событие создания модуля
21         $this->onModuleCreate = array($this, 'changeModulePaths');
22         $this->onModuleCreate(new CEvent ($this->owner));
23         
24         $this->owner->run();        
25     }
26     
27     // обработчик события onModuleCreate
28     public function onModuleCreate($event)
29     {
#19
+
 /home/uspekh/uspekh.pro/docs/index.php(47): CComponent->__call("runEnd", array("frontend"))
42     public static function app() {
43         return parent::app();
44     }
45 }
46 
47 Yii::createWebApplication($config)->runEnd('frontend');
2023-02-01 19:37:38 Apache/2.4.53 (Red Hat Enterprise Linux 8) PHP/7.0.33 Yii Framework/1.1.12