PDA

View Full Version : forum down!!!!! need help!


cigrafix
05-08-2007, 02:34 AM
i get this error! I dont know what it is!

Database error in vBulletin :

mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
/home/turboop/public_html/forum/includes/class_core.php on line 273

d8tabyte
05-08-2007, 02:51 AM
Disable all hacks via config.php ( I don't know if it was a hack or 3.6.4, but I have an option in my vbulletin options to disable the plugins and hooks system) and see if the issue still occurs. If it does, upload all core files again.

Eikinskjaldi
05-08-2007, 04:07 AM
This error means your mysql server has died (or been turned off on purpose), alternatively there is the faint possibility that the mysql.sock file was deleted, which is, in fact, worse.

No amount of disabling hacks or reloading php is going to help with this.

Approaches to fixing the problem depend on whether you have root access to your system and/or root access to your database and/or ssh/commadline access to your system.

cigrafix
05-08-2007, 12:05 PM
weird thing is it came back online about 15 minutes after I posted this! can anyone tell me anything about this! has anyone had this happen before?

WetWired
05-08-2007, 12:41 PM
As already stated, your mysql server was probably down. If your site is on any kind of managed server or especially a shared server, the admins should have recieved notice and restarted it.

Eikinskjaldi
05-09-2007, 12:12 AM
Alternatively, if you are running cpanel and have chkservd configured appropriately, it will ping mysql every 5 minutes and attempt to restart it if it is not running.

If you have some kind of automated package manager installed and configured, such as yum for redhat, then every now and then a package will be updated that requires a mysql restart.

If it happens once a month or so then its probably nothing to worry about. If it's happening more frequently than that then your system has a problem, the diagnosis of which depends on the variables I mentioned above.