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

XF 1.1 Big Issue!!!!!

Matthew2D

Well-known member
#1
I get this when I go to my forum. Need help!!!! Please!!

An exception occurred: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/mcwh/public_html/Forum/forums/library/Zend/Db/Adapter/Mysqli.php on line 333
  1. Zend_Db_Adapter_Mysqli->_connect() in Zend/Db/Adapter/Abstract.php at line 315
  2. Zend_Db_Adapter_Abstract->getConnection() in XenForo/Application.php at line 553
  3. XenForo_Application->loadDb() in XenForo/Application.php at line 780
  4. XenForo_Application->lazyLoad() in XenForo/Application.php at line 810
  5. XenForo_Application::get() in XenForo/Application.php at line 1099
  6. XenForo_Application::getDb() in XenForo/Error.php at line 47
  7. XenForo_Error::unexpectedException() in XenForo/Application.php at line 295
  8. XenForo_Application::handleException()
 

Jake Bunce

XenForo moderator
Staff member
#4
Not sure. I think so.
Doesn't look like it. Your host might be performing maintenance in which case the error would be temporary. If it persists then you need to contact your host to restart the server (or at least restart the MySQL service).
 

Matthew2D

Well-known member
#5
Doesn't look like it. Your host might be performing maintenance in which case the error would be temporary. If it persists then you need to contact your host to restart the server (or at least restart the MySQL service).
I'm on live support for my host right now.
 

Digital Doctor

Well-known member
#6
I get this when I go to my forum. Need help!!!! Please!!

An exception occurred: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/mcwh/public_html/Forum/forums/library/Zend/Db/Adapter/Mysqli.php on line 333
  1. Zend_Db_Adapter_Mysqli->_connect() in Zend/Db/Adapter/Abstract.php at line 315
  2. Zend_Db_Adapter_Abstract->getConnection() in XenForo/Application.php at line 553
  3. XenForo_Application->loadDb() in XenForo/Application.php at line 780
  4. XenForo_Application->lazyLoad() in XenForo/Application.php at line 810
  5. XenForo_Application::get() in XenForo/Application.php at line 1099
  6. XenForo_Application::getDb() in XenForo/Error.php at line 47
  7. XenForo_Error::unexpectedException() in XenForo/Application.php at line 295
  8. XenForo_Application::handleException()
I get that as well for your site.
 

Jake Bunce

XenForo moderator
Staff member
#8
Well, the connection to the MySQL server is failing. The MySQL info is defined in your library/config.php file. The error indicates that it can't even connect to the host, let alone authenticate. So either your host / port is wrong in the config file or the MySQL server is down at the web host.
 

Matthew2D

Well-known member
#9
I know for a fact that it isn't wrong. I checked the config before I posted this thread, but I'll look in the cpanel and see if the database is there.
 

Matthew2D

Well-known member
#11
There running a maintenance. All is well. :)

"The servers listed above will be brought down April 2nd between 10pm-6am CST for scheduled maintenance. The outage per server should only be 10-20 minutes each. We will update here with new information as we have it.

We appreciate your patience and understanding."