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

XF 1.1 All of the sudden, a MySQL error

Akela

Active member
#1
All of the sudden, every page in my forum is giving the following error:
An exception occurred: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home1 ... /forum/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 553 XenForo_Application->loadDb() in XenForo/Application.php at line 780 XenForo_Application->lazyLoad() in XenForo/Application.php at line 810 XenForo_Application::get() in XenForo/Application.php at line 1098 XenForo_Application::getDb() in XenForo/Error.php at line 47 XenForo_Error::unexpectedException() in XenForo/Application.php at line 295 XenForo_Application::handleException()
No one was working on the database or making any changes. Is this something I need to worry about or is this just my server acting up temporarily?
 

HWS

Well-known member
#3
You may have hit the max_connections setting of your MySQL server. It doesn't hurt to inspect and optimize my.ini ;)
 

Akela

Active member
#4
You may have hit the max_connections setting of your MySQL server.
The max_connections limit error looks different (just saying max limit reached), that's why I worried here for a bit.
It doesn't hurt to inspect and optimize my.ini ;)
I am on a shared host, so I have no control over the max MySQL connections limit.... Or did you mean something else?
 

Jake Bunce

XenForo moderator
Staff member
#5
That error means the MySQL server was down. Maybe the server was being restarted. It's only a concern if the error persists in which case you need to contact your host. This is not a connection limit error.