CDbException

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [1045] Access denied for user 'u_pravdalebo'@'ip-172-31-11-160.eu-central-1.compute.internal' (using password: YES)

/var/www/pravda-leboutique.com.ua/framework/yiilite.php(8074)

8062             if(empty($this->connectionString))
8063                 throw new CDbException('CDbConnection.connectionString cannot be empty.');
8064             try
8065             {
8066                 $this->_pdo=$this->createPdoInstance();
8067                 $this->initConnection($this->_pdo);
8068                 $this->_active=true;
8069             }
8070             catch(PDOException $e)
8071             {
8072                 if(YII_DEBUG)
8073                 {
8074                     throw new CDbException('CDbConnection failed to open the DB connection: '.
8075                         $e->getMessage(),(int)$e->getCode(),$e->errorInfo);
8076                 }
8077                 else
8078                 {
8079                     Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException');
8080                     throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo);
8081                 }
8082             }
8083         }
8084     }
8085     protected function close()
8086     {

Stack Trace

#8
+
 /var/www/pravda-leboutique.com.ua/protected/controllers/ReviewsController.php(181): CActiveDataProvider->__construct("Reviews", array("criteria" => array("condition" => "(select count(*) from user where `id`=`t`.`user_id`) AND approve...", "order" => "date DESC")))
176         $dataProvider=new CActiveDataProvider('Reviews',array(
177             'criteria'=>array(
178                 'condition'=>'(select count(*) from user where `id`=`t`.`user_id`) AND approve = 1',
179                 'order'=>'date DESC',
180             )
181         ));
182         $this->render('index',array(
183             'dataProvider'=>$dataProvider,
184             'summary_rating'=>'1',
185             'vote_count'=>$dataProvider->getTotalItemCount()
186         ));
#21
+
 /var/www/pravda-leboutique.com.ua/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-19 10:08:41 nginx/1.9.0 Yii Framework/1.1.13