1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 An exception occurred: Can't connect to local MySQL server through socket

Discussion in 'Troubleshooting and Problems' started by Neutral Singh, May 1, 2015.

  1. Neutral Singh

    Neutral Singh Well-Known Member

    Website is down due to following showing message. I suspect its a server issue. Any pointer exactly what is wrong with the server? Thanks

    An exception occurred: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/*****/public_html/library/Zend/Db/Adapter/Mysqli.php on line 333
        Zend_Db_Adapter_Mysqli->_connect() in Zend/Db/Adapter/Abstract.php at line 315
        Zend_Db_Adapter_Abstract->getConnection() in XenForo/Application.php at line 727
        call_user_func_array() in XenForo/Application.php at line 970
        XenForo_Application->lazyLoad() in XenForo/Application.php at line 1001
        XenForo_Application::get() in XenForo/Application.php at line 1571
        XenForo_Application::getDb() in XenForo/Model.php at line 161
        XenForo_Model->_getDb() in XenForo/Model/DataRegistry.php at line 138
        XenForo_Model_DataRegistry->_getMultiFromDb() in XenForo/Model/DataRegistry.php at line 97
        XenForo_Model_DataRegistry->getMulti() in XenForo/Dependencies/Abstract.php at line 147
        XenForo_Dependencies_Abstract->preLoadData() in XenForo/FrontController.php at line 127
        XenForo_FrontController->run() in /home/******/public_html/index.php at line 13
  2. Brogan

    Brogan XenForo Moderator Staff Member

    This would imply that MySQL has stopped running.

    You will need to contact your host.
    Neutral Singh likes this.

Share This Page