Go Back   vb.org Archive > Community Discussions > Forum and Server Management
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-11-2009, 10:53 PM
Napster6 Napster6 is offline
 
Join Date: Feb 2009
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Attempt to Upgrade to 3.8.2

Well I am new to this I have asked several questions and Brian has been amazingly quick to respond. Basically, I attempted to upgrade to 3.8.2 and just kinda browsed the instructions. Bad idea, I overwrote the config.php with config.php.new before changing any settings. Now on step 2/13 of the upgrade I get this.

Quote:
Attempting to attach to database

Error description: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (13) /mounted-storage/home119c/sub006/sc67362-TFJU/www/forums/includes/class_core.php on line 311

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.
I have gone into my server and found MySQL settings. I have the username and password, yet im not sure what else to plug in, as its still giving me the same error.

A section of my config reads as follows.

Quote:
// ****** DATABASE TYPE ******
// This is the type of the database server on which your vBulletin database will be located.
// Valid options are mysql and mysqli, for slave support add _slave. Try to use mysqli if you are using PHP 5 and MySQL 4.1+
// for slave options just append _slave to your preferred database type.
$config['Database']['dbtype'] = 'mysql';

// ****** DATABASE NAME ******
// This is the name of the database where your vBulletin will be located.
// This must be created by your webhost.
$config['Database']['dbname'] = 'mx-6_forum';

// ****** TABLE PREFIX ******
// Prefix that your vBulletin tables have in the database.
$config['Database']['tableprefix'] = 'mx6_';

// ****** TECHNICAL EMAIL ADDRESS ******
// If any database errors occur, they will be emailed to the address specified here.
// Leave this blank to not send any emails when there is a database error.
$config['Database']['technicalemail'] = '******@gmail.com';

// ****** FORCE EMPTY SQL MODE ******
// New versions of MySQL (4.1+) have introduced some behaviors that are
// incompatible with vBulletin. Setting this value to "true" disables those
// behaviors. You only need to modify this value if vBulletin recommends it.
$config['Database']['force_sql_mode'] = false;



// ****** MASTER DATABASE SERVER NAME AND PORT ******
// This is the hostname or IP address and port of the database server.
// If you are unsure of what to put here, leave the default values.
$config['MasterServer']['servername'] = 'localhost';
$config['MasterServer']['port'] = 1022;

// ****** MASTER DATABASE USERNAME & PASSWORD ******
// This is the username and password you use to access MySQL.
// These must be obtained through your webhost.
$config['MasterServer']['username'] = 'mx-6_forum';
$config['MasterServer']['password'] = '********';
Any input is greatly appreciated!
Reply With Quote
  #2  
Old 05-11-2009, 11:11 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, now it depends on which host you use too fyi.

I was using Siteground (avoid IMO, strictly IMO) and had

$config['MasterServer']['servername'] = 'localhost';
$config['MasterServer']['port'] = 1022;

However I have always used port 3306 w/o any problems.

Additionally w/ SG I used:

Code:
$config['Database']['dbname'] = 'test_testing';
NOW, note the prefix is there so unless you need the value remove the DB prefix you have i.e.

Code:
$config['Database']['tableprefix'] = 'mx6_';
Which is wrong regardless due to this:
Code:
$config['Database']['dbname'] = 'mx-6_forum';
So they should kinda match i.e. $config['Database']['dbname'] = 'mx6_forum'; AS mx6 is the DB's prefix not the tables SO I say remove the value!

Code:
Make it this: $config['Database']['tableprefix'] = '';
Now currently I have switched over to Godaddy and that requires this:
Code:
$config['MasterServer']['servername'] = 'dbname.db.1234567.hostedresource.com';
$config['MasterServer']['port'] = 3306;
See if that helps you figure it out! Also close your browser COMPLETELY before attempting again or it can cause issues or repeat the same error messages when it is in fact ready to roll

AND now is the time to make a backup of your config file
Reply With Quote
  #3  
Old 05-11-2009, 11:13 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you sure your database login name and password are correct? This is usually different than your server login information.
Reply With Quote
  #4  
Old 05-11-2009, 11:54 PM
wolfstream wolfstream is offline
 
Join Date: Jan 2003
Location: Iowa
Posts: 382
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

config.php doesn't usually have to be overwritten at all. There are times when it changes, but those are usually only major releases (ie: vb3, vb4, etc).

If you're using cpanel (many are), you can assign another username and password to the database inside the control panel itself, this may help relieve the situation
Reply With Quote
  #5  
Old 05-12-2009, 01:05 AM
Napster6 Napster6 is offline
 
Join Date: Feb 2009
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Are you sure your database login name and password are correct? This is usually different than your server login information.
It is different then my server login information.

I tried what "TheLastSuperman" said still same error, I also closed all windows after editing.
Any other ideas

--------------- Added [DATE]1242094014[/DATE] at [TIME]1242094014[/TIME] ---------------

Quote:
Originally Posted by wolfstream View Post
config.php doesn't usually have to be overwritten at all. There are times when it changes, but those are usually only major releases (ie: vb3, vb4, etc).

If you're using cpanel (many are), you can assign another username and password to the database inside the control panel itself, this may help relieve the situation
I can't get into the cpanel at all, I get the Database Error page

Quote:
Database Error Database error
The database has encountered a problem.
Please try the following:

* Load the page again by clicking the Refresh button in your web browser.
* Open the mx-6.ca home page, then try to open another page.
* Click the Back button to try another link.

The mx-6.ca forum technical staff have been notified of the error, though you may contact them if the problem persists.

We apologise for any inconvenience.
--------------- Added [DATE]1242094081[/DATE] at [TIME]1242094081[/TIME] ---------------

Oh, and my host is www.Servage.net

I can add MySQL databases inside there myself as well.

--------------- Added [DATE]1242094747[/DATE] at [TIME]1242094747[/TIME] ---------------

I'll add this as well, line 311 of the class_core.php file is as follows

Quote:
$link = $this->functions[$usepconnect ? 'pconnect' : 'connect']("$servername:$port", $username, $password);
Reply With Quote
  #6  
Old 05-12-2009, 01:20 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is the database error you get? You'll need to view the page source to get it.
Reply With Quote
  #7  
Old 05-12-2009, 01:29 AM
Napster6 Napster6 is offline
 
Join Date: Feb 2009
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OH WOW
I fixed it, but now. my entire forums are gone. Everything.

--------------- Added [DATE]1242095745[/DATE] at [TIME]1242095745[/TIME] ---------------

I made a new MySQL database, is that where all the information for my forums are? that would make sense as the new one worked without a problem, but wiped my forums clean. Now im trying with the previous database I had. Im still getting an error but this time its.

Quote:
Error description: mysql_connect() [function.mysql-connect]: Access denied for user 'mx-6_forum'@'**.**.***.***' (using password: YES) /mounted-storage/home119c/sub006/sc67362-TFJU/www/forums/includes/class_core.php on line 311
Reply With Quote
  #8  
Old 05-12-2009, 01:37 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You said you only skimmed the directions.... you didn't Install the forums (install.php), did you? You did an Upgrade (upgrade.php), right?
Reply With Quote
  #9  
Old 05-12-2009, 01:46 AM
Napster6 Napster6 is offline
 
Join Date: Feb 2009
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nope I just realized that. Im so effed.

The site has only been open for a little over 2 months but still.
Reply With Quote
  #10  
Old 05-12-2009, 01:52 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you have a backup?

(One of the instructions in doing an upgrade is to make a backup. )
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:29 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04272 seconds
  • Memory Usage 2,268KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_code
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete