CDbException

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

/var/www/html/nowatersupplydata/_yii-1.1.15.022a51/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

#8
+
 /var/www/html/nowatersupplydata/protected/controllers/NotanswerController.php(131): CActiveRecord->__construct()
126     /**
127     * Lists all models.
128     */
129     public function actionIndex()
130     {
131         $model=new Form('search');
132         $model->unsetAttributes();  // clear any default values
133         if(isset($_GET['Form']))
134             $model->attributes=$_GET['Form'];
135 
136         $this->render('admin',array(
#21
+
 /var/www/html/nowatersupplydata/index.php(17): CApplication->run()
12 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
13 
14 require_once('common.php');
15 require_once('globals.php');
16 require_once($yii);
17 Yii::createWebApplication($config)->run();
2024-03-28 20:08:12 Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.32 Yii Framework/1.1.15