CDbException

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

/var/www/bytesol.com/dev/yii/framework/db/CDbConnection.php(382)

370                 throw new CDbException(Yii::t('yii','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(Yii::t('yii','CDbConnection failed to open the DB connection: {error}',
383                         array('{error}'=>$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(Yii::t('yii','CDbConnection failed to open the DB connection.'),(int)$e->getCode(),$e->errorInfo);
389                 }
390             }
391         }
392     }
393 
394     /**

Stack Trace

#9
+
 /var/www/bytesol.com/dev/uremote/protected/controllers/SiteController.php(176): CActiveRecord->__construct()
171             'privacy' => $privacy
172         ));
173     }
174 
175     public function actionPurchase() {
176         $order = new Order;
177         if (isset($_POST['Order'])) {
178             $order->attributes = $_POST['Order'];
179             $time = time();
180             $number = $order->card_number;
181             $key = $this->makeKey($time);
#17
+
 /var/www/bytesol.com/dev/uremote/index.php(12): CApplication->run()
07 // remove the following lines when in production mode
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
10 
11 require_once($yii);
12 Yii::createWebApplication($config)->run();
2024-03-28 10:27:58 Apache/2.4.18 (Ubuntu) Yii Framework/1.1.10