TPhpErrorException

Description

[Warning] mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Too many connections (@line 355 in file /home/animy/www/libs/adodb/drivers/adodb-mysql.inc.php).

Source File

/home/animy/www/libs/adodb/drivers/adodb-mysql.inc.php (355)

0344:         $fraction = $dayFraction * 24 * 3600;
0345:         return "from_unixtime(unix_timestamp($date)+$fraction)";
0346:     }
0347:     
0348:     // returns true or false
0349:     function _connect($argHostname, $argUsername, $argPassword, $argDatabasename)
0350:     {
0351:         if (!empty($this->port)) $argHostname .= ":".$this->port;
0352:         
0353:         if (ADODB_PHPVER >= 0x4300)
0354:             $this->_connectionID = mysql_connect($argHostname,$argUsername,$argPassword,
0355: $this->forceNewConnect,$this->clientFlags);
0356: else if (ADODB_PHPVER >= 0x4200) 0357: $this->_connectionID = mysql_connect($argHostname,$argUsername,$argPassword, 0358: $this->forceNewConnect); 0359: else 0360: $this->_connectionID = mysql_connect($argHostname,$argUsername,$argPassword); 0361: 0362: if ($this->_connectionID === false) return false; 0363: if ($argDatabasename) return $this->SelectDB($argDatabasename); 0364: return true; 0365: } 0366: 0367: // returns true or false

Stack Trace

#0 [internal function]: PradoBase::phpErrorHandler(2, 'mysql_connect()...', '/home/animy/www...', 355, Array)
#1 /home/animy/www/libs/adodb/drivers/adodb-mysql.inc.php(355): mysql_connect('mysql51-99.pers...', 'animyanimy', 'qwedsaqwe1', false, 0)
#2 /home/animy/www/libs/adodb/adodb.inc.php(414): ADODB_mysql->_connect('mysql51-99.pers...', 'animyanimy', 'qwedsaqwe1', 'animyanimy')
#3 /home/animy/www/protected/modules/dataModule.php(95): ADOConnection->Connect('mysql51-99.pers...', 'animyanimy', 'qwedsaqwe1', 'animyanimy')
#4 /home/animy/www/protected/modules/dataModule.php(81): dataModule->getDatabaseConnection()
#5 /home/animy/www/protected/modules/dataModule.php(1920): dataModule->__call('Execute', Array)
#6 /home/animy/www/protected/modules/dataModule.php(1920): dataModule->Execute('SELECT * FROM o...')
#7 /home/animy/www/protected/pages/files/listFiles.php(12): dataModule->queryCategoryByID(251)
#8 /home/animy/www/libs/prado/Web/UI/TControl.php(1270): listFiles->onInit(NULL)
#9 /home/animy/www/libs/prado/Web/UI/TCompositeControl.php(35): TControl->initRecursive(NULL)
#10 /home/animy/www/libs/prado/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(NULL)
#11 /home/animy/www/libs/prado/Web/UI/TPage.php(202): TTemplateControl->initRecursive()
#12 /home/animy/www/libs/prado/Web/UI/TPage.php(193): TPage->processNormalRequest(Object(THtmlWriter))
#13 /home/animy/www/libs/prado/Web/Services/TPageService.php(472): TPage->run(Object(THtmlWriter))
#14 /home/animy/www/libs/prado/Web/Services/TPageService.php(418): TPageService->runPage(Object(listFiles), Array)
#15 /home/animy/www/libs/prado/TApplication.php(1066): TPageService->run()
#16 /home/animy/www/libs/prado/TApplication.php(376): TApplication->runService()
#17 /home/animy/www/index.php5(47): TApplication->run()
#18 {main}
2016-12-05 15:36 Apache PRADO/3.1.0