TPhpErrorException

Description

[Warning] mysql_connect(): Lost connection to MySQL server at 'reading initial communication packet', system error: 113 (@line 355 in file /home/storageh/www/serwisy/eubieranki/libs/adodb/drivers/adodb-mysql.inc.php).

Source File

/home/storageh/www/serwisy/eubieranki/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/storageh/...', 355, Array)
#1 /home/storageh/www/serwisy/eubieranki/libs/adodb/drivers/adodb-mysql.inc.php(355): mysql_connect('mysql51-5.premi...', 'storageheubi', 'AL6jqQjq', false, 0)
#2 /home/storageh/www/serwisy/eubieranki/libs/adodb/adodb.inc.php(414): ADODB_mysql->_connect('mysql51-5.premi...', 'storageheubi', 'AL6jqQjq', 'storageheubi')
#3 /home/storageh/www/serwisy/eubieranki/protected/modules/dataModule.php(95): ADOConnection->Connect('mysql51-5.premi...', 'storageheubi', 'AL6jqQjq', 'storageheubi')
#4 /home/storageh/www/serwisy/eubieranki/protected/modules/dataModule.php(81): dataModule->getDatabaseConnection()
#5 /home/storageh/www/serwisy/eubieranki/protected/modules/dataModule.php(509): dataModule->__call('Prepare', Array)
#6 /home/storageh/www/serwisy/eubieranki/protected/modules/dataModule.php(509): dataModule->Prepare('SELECT f.id,\n\t\t...')
#7 /home/storageh/www/serwisy/eubieranki/protected/pages/files/viewFile.php(15): dataModule->queryFileByID(767)
#8 /home/storageh/www/serwisy/eubieranki/libs/prado/Web/UI/TControl.php(1179): viewFile->onInit(NULL)
#9 /home/storageh/www/serwisy/eubieranki/libs/prado/Web/UI/TCompositeControl.php(35): TControl->initRecursive(NULL)
#10 /home/storageh/www/serwisy/eubieranki/libs/prado/Web/UI/TTemplateControl.php(239): TCompositeControl->initRecursive(NULL)
#11 /home/storageh/www/serwisy/eubieranki/libs/prado/Web/UI/TPage.php(182): TTemplateControl->initRecursive()
#12 /home/storageh/www/serwisy/eubieranki/libs/prado/Web/UI/TPage.php(173): TPage->processNormalRequest(Object(THtmlWriter))
#13 /home/storageh/www/serwisy/eubieranki/libs/prado/Web/Services/TPageService.php(458): TPage->run(Object(THtmlWriter))
#14 /home/storageh/www/serwisy/eubieranki/libs/prado/TApplication.php(988): TPageService->run()
#15 /home/storageh/www/serwisy/eubieranki/libs/prado/TApplication.php(346): TApplication->runService()
#16 /home/storageh/www/serwisy/eubieranki/index.php(35): TApplication->run()
#17 {main}
2016-07-25 10:01 Apache PRADO/3.0.2