CDbException

CDbConnection kon geen verbinding maken met de database: SQLSTATE[HY000] [1045] Access denied for user 'usbuitenglas'@'localhost' (using password: YES)

/var/www/vhosts/glasvezelbuitengebied.nl/YiiRoot/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

#9
+
 /var/www/vhosts/glasvezelbuitengebied.nl/httpdocs/protected/controllers/AanmeldingenController.php(98): CActiveRecord->__construct()
093      * If creation is successful, the browser will be redirected to the 'view' page.
094      */
095     public function actionCreate()
096     {
097         Yii::app()->user->setState('startpagina', 'default');    
098         $model=new Aanmeldingen;
099 
100         // Uncomment the following line if AJAX validation is needed
101         // $this->performAjaxValidation($model);
102 
103         if(isset($_POST['Aanmeldingen']))
#22
+
 /var/www/vhosts/glasvezelbuitengebied.nl/httpdocs/index.php(15): CApplication->run()
10 
11 // remove the following line when in production mode
12 defined('YII_DEBUG') or define('YII_DEBUG',true);
13 
14 require_once($yii);
15 Yii::createWebApplication($config)->run();
2024-03-29 03:18:58 Apache Yii Framework/1.1.7