CDbException

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [2005] Unknown MySQL server host 'mysql02.addapompermayer.com.br' (2)

/home/storage/6/ad/2f/addapompermayer/public_html/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

#7
+
–
 /home/storage/6/ad/2f/addapompermayer/public_html/protected/extensions/giix-components/GxActiveRecord.php(26): CActiveRecord::model("Produtos")
21      * composite pk table. Usually a character.
22      */
23     public static $pkSeparator = '-';
24 
25     public static function model($className=__CLASS__) {
26         return parent::model($className);
27     }
28 
29     /**
30      * This method should be overridden to declare related pivot models for each MANY_MANY relationship.
31      * The pivot model is used by {@link saveWithRelated}.
#8
+
–
 /home/storage/6/ad/2f/addapompermayer/public_html/protected/models/_base/BaseProdutos.php(37): GxActiveRecord::model("Produtos")
32     public $q;
33     public $IdProdutos;
34     public $IdCategoria;
35 
36     public static function model($className = __CLASS__) {
37         return parent::model($className);
38     }
39 
40     public function tableName() {
41         return 'produtos';
42     }
#9
+
–
 /home/storage/6/ad/2f/addapompermayer/public_html/protected/models/Produtos.php(8): BaseProdutos::model("Produtos")
03 Yii::import('application.models._base.BaseProdutos');
04 
05 class Produtos extends BaseProdutos
06 {
07     public static function model($className=__CLASS__) {
08         return parent::model($className);
09     }
10 }
2024-03-29 03:11:20 Apache Yii Framework/1.1.12