CDbException

CDbConnection failed to open the DB connection: SQLSTATE[28000] [1045] Access denied for user 'app002_recfrhusr'@'sv551.xserver.jp' (using password: YES)

/home/app002/frh.or.jp/framework/db/CDbConnection.php(381)

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

Stack Trace

#7
+
 /home/app002/frh.or.jp/app/rec_app/protected/modules/conv/models/Convention.php(26): CActiveRecord::model("Convention")
21      * @var string $regist_time
22      */
23 
24     public static function model($className=__CLASS__)
25     {
26         return parent::model($className);
27     }
28 
29     public function tableName()
30     {
31         return '{{convention}}';
#8
+
 /home/app002/frh.or.jp/app/rec_app/protected/components/FrontController.php(21): Convention::model()
16         // 開催中の大会
17         $criteria=new CDbCriteria();
18         $criteria->compare('view_flg', 1);
19         $criteria->compare('status', 0);
20         $criteria->order='id desc';
21         $this->_conv=Convention::model()->find($criteria);
22 
23         if ($this->_conv !== NULL)
24         {
25             // 参加期間の読み込み
26             $join_open=Functions::getYmdArray($this->_conv->join_open);
#12
+
 /home/app002/frh.or.jp/public_html/rec/index.php(14): CApplication->run()
09 $config=CLM_APP_PATH . '/config/main.php';
10 $global_functions=CLM_APP_PATH . '/components/Globals.php';
11 
12 require_once($yii);
13 require_once($global_functions);
14 Yii::createWebApplication($config)->run();
2024-03-28 18:31:02 Apache Yii Framework/1.1.13