ERROR: PleskFatalException: Unable to connect to database
Posted: Wed Feb 12, 2014 5:30 pm
Hello, my server seems to have problems with mysql
ERROR: PleskFatalException: Unable to connect to database: mysql_connect(): No such file or directory (auth.php:142)
I performed a yum update and i think mysql had an update!
This is what i get when i go to a joomla website:
Error displaying the error page: Application Instantiation Error
or on another webpage it states not able to connect to database.
And i als o got this in plesk CP
ERROR: Zend_Controller_Exception: SQLSTATE[HY000] [2002] Connection refused#0 /usr/local/psa/admin/externals/Zend/Db/Adapter/Pdo/Mysql.php(109): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /usr/local/psa/admin/externals/Zend/Db/Adapter/Abstract.php(459): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 /usr/local/psa/admin/externals/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query(Object(Zend_Db_Table_Select), Array)
#3 /usr/local/psa/admin/plib/Db/Adapter/Pdo/Mysql.php(19): Zend_Db_Adapter_Pdo_Abstract->query(Object(Zend_Db_Table_Select), Array)
#4 /usr/local/psa/admin/externals/Zend/Db/Table/Abstract.php(1534): Db_Adapter_Pdo_Mysql->query(Object(Zend_Db_Table_Select))
#5 /usr/local/psa/admin/externals/Zend/Db/Table/Abstract.php(1349): Zend_Db_Table_Abstract->_fetch(Object(Zend_Db_Table_Select))
#6 /usr/local/psa/admin/plib/CommonPanel/Controller/Helper/Front.php(77): Zend_Db_Table_Abstract->fetchAll()
#7 /usr/local/psa/admin/plib/CommonPanel/Controller/Action/Abstract.php(62): CommonPanel_Controller_Helper_Front::appendGlobalIncludes(Object(Zend_View))
#8 /usr/local/psa/admin/plib/AdminPanel/Controller/Action/Abstract.php(30): CommonPanel_Controller_Action_Abstract->init()
#9 /usr/local/psa/admin/plib/AdminPanel/Controller/Action/Admin.php(55): AdminPanel_Controller_Action_Abstract->init()
#10 /usr/local/psa/admin/panel/application/controllers/ErrorController.php(17): AdminPanel_Controller_Action_Admin->init()
#11 /usr/local/psa/admin/externals/Zend/Controller/Action.php(133): ErrorController->init()
#12 /usr/local/psa/admin/externals/Zend/Controller/Dispatcher/Standard.php(268): Zend_Controller_Action->__construct(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http), Array)
#13 /usr/local/psa/admin/externals/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#14 /usr/local/psa/admin/plib/AdminPanel/Application/Web.php(21): Zend_Controller_Front->dispatch()
#15 /usr/local/psa/admin/panel/application/public/index.php(14): AdminPanel_Application_Web->run()
#16 {main}
Additionally, an exception has occurred while trying to report this error: PleskMainDBException
MySQL query failed: (Broker.php:336)
What can i do?
ERROR: PleskFatalException: Unable to connect to database: mysql_connect(): No such file or directory (auth.php:142)
I performed a yum update and i think mysql had an update!
This is what i get when i go to a joomla website:
Error displaying the error page: Application Instantiation Error
or on another webpage it states not able to connect to database.
And i als o got this in plesk CP
ERROR: Zend_Controller_Exception: SQLSTATE[HY000] [2002] Connection refused#0 /usr/local/psa/admin/externals/Zend/Db/Adapter/Pdo/Mysql.php(109): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /usr/local/psa/admin/externals/Zend/Db/Adapter/Abstract.php(459): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 /usr/local/psa/admin/externals/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query(Object(Zend_Db_Table_Select), Array)
#3 /usr/local/psa/admin/plib/Db/Adapter/Pdo/Mysql.php(19): Zend_Db_Adapter_Pdo_Abstract->query(Object(Zend_Db_Table_Select), Array)
#4 /usr/local/psa/admin/externals/Zend/Db/Table/Abstract.php(1534): Db_Adapter_Pdo_Mysql->query(Object(Zend_Db_Table_Select))
#5 /usr/local/psa/admin/externals/Zend/Db/Table/Abstract.php(1349): Zend_Db_Table_Abstract->_fetch(Object(Zend_Db_Table_Select))
#6 /usr/local/psa/admin/plib/CommonPanel/Controller/Helper/Front.php(77): Zend_Db_Table_Abstract->fetchAll()
#7 /usr/local/psa/admin/plib/CommonPanel/Controller/Action/Abstract.php(62): CommonPanel_Controller_Helper_Front::appendGlobalIncludes(Object(Zend_View))
#8 /usr/local/psa/admin/plib/AdminPanel/Controller/Action/Abstract.php(30): CommonPanel_Controller_Action_Abstract->init()
#9 /usr/local/psa/admin/plib/AdminPanel/Controller/Action/Admin.php(55): AdminPanel_Controller_Action_Abstract->init()
#10 /usr/local/psa/admin/panel/application/controllers/ErrorController.php(17): AdminPanel_Controller_Action_Admin->init()
#11 /usr/local/psa/admin/externals/Zend/Controller/Action.php(133): ErrorController->init()
#12 /usr/local/psa/admin/externals/Zend/Controller/Dispatcher/Standard.php(268): Zend_Controller_Action->__construct(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http), Array)
#13 /usr/local/psa/admin/externals/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#14 /usr/local/psa/admin/plib/AdminPanel/Application/Web.php(21): Zend_Controller_Front->dispatch()
#15 /usr/local/psa/admin/panel/application/public/index.php(14): AdminPanel_Application_Web->run()
#16 {main}
Additionally, an exception has occurred while trying to report this error: PleskMainDBException
MySQL query failed: (Broker.php:336)
What can i do?