CDbException

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [2013] Lost connection to MySQL server at 'reading initial communication packet', system error: 111

/home/storage/9/32/14/brasilcomponentes/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/9/32/14/brasilcomponentes/public_html/protected/extensions/giix-components/GxActiveRecord.php(26): CActiveRecord::model("Banners")
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/9/32/14/brasilcomponentes/public_html/protected/models/_base/BaseBanners.php(23): GxActiveRecord::model("Banners")
18  *
19  */
20 abstract class BaseBanners extends GxActiveRecord {
21 
22     public static function model($className=__CLASS__) {
23         return parent::model($className);
24     }
25 
26     public function tableName() {
27         return 'banners';
28     }
#9
+
–
 /home/storage/9/32/14/brasilcomponentes/public_html/protected/models/Banners.php(8): BaseBanners::model("Banners")
03 Yii::import('application.models._base.BaseBanners');
04 
05 class Banners extends BaseBanners
06 {
07     public static function model($className=__CLASS__) {
08         return parent::model($className);
09     }
10 }
2024-03-28 14:56:14 Apache Yii Framework/1.1.12