Log in

View Full Version : Upgrading Database Error


kellyandmark04
12-07-2010, 01:23 AM
I was upgrading from 3.6 to 3.8. I uploaded all the files and editted the config file and when I run the upgrade script I get the error

mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (13)
/mounted-storage/home5/sub001/sc12333-CTGL/mysite.com/forum/includes/class_core.php on line 311

Cpanel is just a white blank page.
My site just gives a database error.

Any info on what to check? Thanks!

Lynne
12-07-2010, 01:31 AM
cPanel is a white blank page? If so, you need to talk to your host about this. And actually, that error is a server error, so you need to talk to them anyway.

kellyandmark04
12-07-2010, 01:36 AM
^^^That's what I was thinking. Thanks for your help and the quick reply!!!!!

--------------- Added 1291693215 at 1291693215 ---------------

If I reupload the 3.6 I had then install it and use the backup I have do you think it will work??? It was working fine before the upgrade.

--------------- Added 1291694117 at 1291694117 ---------------

Also on this server I have banners that are hosted on other sites and they are still up and showing if that helps.

--------------- Added 1291695099 at 1291695099 ---------------

I have seen some things saying change localhost, but not sure what to change it to. Here was the thread

http://www.vbulletin.com/forum/archive/index.php/t-265204.html?

--------------- Added 1291699746 at 1291699746 ---------------

Tried reinstalling the vb I had previously and running the install script and got the same error once it tried to verify the database and it said to

The database has failed to connect because you do not have permission to connect to the server. Please confirm the values entered in the 'includes/config.php' file.

Lynne
12-07-2010, 02:02 PM
Have you disabled all your plugins?
Note: To temporarily disable the plugin system, edit includes/config.php and add this line right under <?php

define('DISABLE_HOOKS', true);

See if that helps. Also, double-check your config.php file cuz it sounds like something is wrong there. And, make sure you edit that file using a plain text editor or you will cause problems. Do you have a backup of that file somewhere? Can you confirm the values in there with your host, if need be?