CDbException

CDbConnection failed to open the DB connection: SQLSTATE[08004] [1040] Too many connections

/var/www/codebase/yowcow/common/lib/yii/db/CDbConnection.php(287)

275                 throw new CDbException(Yii::t('yii','CDbConnection.connectionString cannot be empty.'));
276             try
277             {
278                 Yii::trace('Opening DB connection','system.db.CDbConnection');
279                 $this->_pdo=$this->createPdoInstance();
280                 $this->initConnection($this->_pdo);
281                 $this->_active=true;
282             }
283             catch(PDOException $e)
284             {
285                 if(YII_DEBUG)
286                 {
287                     throw new CDbException(Yii::t('yii','CDbConnection failed to open the DB connection: {error}',
288                         array('{error}'=>$e->getMessage())),(int)$e->getCode(),$e->errorInfo);
289                 }
290                 else
291                 {
292                     Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException');
293                     throw new CDbException(Yii::t('yii','CDbConnection failed to open the DB connection.'),(int)$e->getCode(),$e->errorInfo);
294                 }
295             }
296         }
297     }
298 
299     /**

Stack Trace

#23
+
 /var/www/codebase/yowcow/frontend/www/index.php(19): CApplication->run()
14 $config=$root.'/config/main-local.php';
15 
16 require_once($common.'/lib/yii/yii.php');
17 require_once($common.'/lib/global.php');
18 
19 Yii::createWebApplication($config)->run();
20 
21 
2024-03-28 04:44:43 Apache/2.4.10 (Debian) Yii Framework/1.1.6
CDbConnection failed to open the DB connection: SQLSTATE[HY000] [1040] Too many connections