Log in

View Full Version : Upgrading to 3.6 vBulletin error


twilighthush
03-28-2007, 12:05 AM
Trying to upgrade from 3.6.0 to 3.6.5, I encountered the following error:

Database error in vBulletin :

mysql_connect(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (46)
/forums/includes/class_core.php on line 273

MySQL Error :
Error Number :
Date : Wednesday, March 28th 2007 @ 01:02:18 AM
Script : http://www.sugizolove.com/forums/install/upgrade.php
Referrer :
IP Address : 67.84.227.182
Username :
Classname : vb_database

What should I do to fix this?

calorie
03-28-2007, 01:02 AM
Check that the settings in your vB config file are correct.

twilighthush
03-28-2007, 01:04 AM
I originally thought that was the problem as well, but when I checked the config file, everything looked okay.

calorie
03-28-2007, 01:16 AM
Looks like you're barfing out in db_connect, specifically the line in bold...

do
{
$link = $this->functions[$usepconnect ? 'pconnect' : 'connect']("$servername:$port", $username, $password);
}
while ($link == false AND $this->reporterror);

twilighthush
03-28-2007, 01:20 AM
I'm not sure how to fix this, as I'm relatively new to vBulletin and coding in general. What should I do to rectify this?

calorie
03-28-2007, 01:21 AM
Check that the vB database is up and running; verify that you have access to said database: recheck the vB config file for any typos.

twilighthush
03-28-2007, 01:31 AM
How can I check if the vB db is up and running? Sorry if I sound like so much of a noob, I kind of am when it comes to vBulletin. I've checked my config file several times; I really don't think I have a typo in there -- the variables match up with the ones from my previous working config file.

calorie
03-28-2007, 01:38 AM
Assuming your board is virgin, or you can shut off all hacks via define('DISABLE_HOOKS', true); in your vB config file, contact vBcom support at http://members.vbulletin.com/membersupport_contactform.php and they can help you with the upgrade.

Marco van Herwaarden
03-28-2007, 09:04 AM
mysql_connect(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (46)

See: http://www.vbulletin.com/docs/html/cantconnect