TPhpErrorException

Description

[Warning] mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) (@line 358 in file /home/kolhida/modules/framework/3rdParty/adodb/drivers/adodb-mysql.inc.php).

Source File

/home/kolhida/modules/framework/3rdParty/adodb/drivers/adodb-mysql.inc.php (358)

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

Stack Trace

#0 [internal function]: PradoBase::phpErrorHandler(2, 'mysql_connect()...', '/home/kolhida/m...', 358, Array)
#1 /home/kolhida/modules/framework/3rdParty/adodb/drivers/adodb-mysql.inc.php(358): mysql_connect('localhost', 'kolhida_kolhida', 'biFJY5ARxs@Md', false, 0)
#2 /home/kolhida/modules/framework/3rdParty/adodb/adodb.inc.php(430): ADODB_mysql->_connect('localhost', 'kolhida_kolhida', 'biFJY5ARxs@Md', 'kolhida_kolhida')
#3 /home/kolhida/public_html/protected/Modules/adodb.php(89): ADOConnection->Connect('localhost', 'kolhida_kolhida', 'biFJY5ARxs@Md', 'kolhida_kolhida')
#4 /home/kolhida/public_html/protected/Modules/adodb.php(75): adodb->getDatabaseConnection()
#5 /home/kolhida/public_html/protected/Common/DbHandler.php(347): adodb->__call('GetAll', Array)
#6 /home/kolhida/public_html/protected/Common/DbHandler.php(347): adodb->GetAll('SELECT * FROM p...', Array)
#7 /home/kolhida/public_html/protected/Portlets/MainMenu.php(8): DbHandler->getMenuItems('MAIN')
#8 /home/kolhida/modules/framework/Web/UI/TControl.php(1224): MainMenu->onInit(NULL)
#9 /home/kolhida/modules/framework/Web/UI/TCompositeControl.php(35): TControl->initRecursive(Object(MainLayout))
#10 /home/kolhida/modules/framework/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(Object(MainLayout))
#11 /home/kolhida/modules/framework/Web/UI/TControl.php(1209): TTemplateControl->initRecursive(Object(MainLayout))
#12 /home/kolhida/modules/framework/Web/UI/TControl.php(1209): TControl->initRecursive(Object(MainLayout))
#13 /home/kolhida/modules/framework/Web/UI/TCompositeControl.php(35): TControl->initRecursive(Object(Catalog))
#14 /home/kolhida/modules/framework/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(Object(Catalog))
#15 /home/kolhida/modules/framework/Web/UI/TControl.php(1209): TTemplateControl->initRecursive(Object(Catalog))
#16 /home/kolhida/modules/framework/Web/UI/TCompositeControl.php(35): TControl->initRecursive(NULL)
#17 /home/kolhida/modules/framework/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(NULL)
#18 /home/kolhida/modules/framework/Web/UI/TPage.php(198): TTemplateControl->initRecursive()
#19 /home/kolhida/modules/framework/Web/UI/TPage.php(189): TPage->processNormalRequest(Object(THtmlWriter))
#20 /home/kolhida/modules/framework/Web/Services/TPageService.php(458): TPage->run(Object(THtmlWriter))
#21 /home/kolhida/modules/framework/TApplication.php(999): TPageService->run()
#22 /home/kolhida/modules/framework/TApplication.php(351): TApplication->runService()
#23 /home/kolhida/public_html/index.php(33): TApplication->run()
#24 {main}
2018-10-24 02:42 Apache/2.2.15 PRADO/3.1.0a