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 02-17-2010, 12:19 PM
Khan_ Khan_ is offline
 
Join Date: Sep 2009
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Database error

first of all apologize for posting in this forum .. i dont know where to look for support and create a topic ..

My webhost moved the server and restored on different server ..and now after moving to new server it gives database error ..site dosent loads and i have no idea what to do .can someone please help me with it .. i dont want to loose my 13k members and everything .. please help.
Reply With Quote
  #2  
Old 02-17-2010, 12:38 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is the exact db error you get?

P.s. Check the config.php file and make sure that the db infos in there match those of the db in the new server.
Reply With Quote
  #3  
Old 02-17-2010, 12:49 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please provide the full database error as given in the pagesource of the error page or in your email.
Reply With Quote
  #4  
Old 02-17-2010, 01:31 PM
Khan_ Khan_ is offline
 
Join Date: Sep 2009
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i got error email like over 1500 ... which one should i give out ..

the latest email ..

Code:
Invalid SQL:

               SELECT
                       userfield.*, usertextfield.*, user.*, UNIX_TIMESTAMP(passworddate) AS passworddate, user.languageid AS saved_languageid,
                       IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid,
                       language.phrasegroup_global AS phrasegroup_global,
                       language.phrasegroup_holiday AS phrasegroup_holiday,
                       language.options AS lang_options,
                       language.languagecode AS lang_code,
                       language.charset AS lang_charset,
                       language.locale AS lang_locale,
                       language.imagesoverride AS lang_imagesoverride,
                       language.dateoverride AS lang_dateoverride,
                       language.timeoverride AS lang_timeoverride,
                       language.registereddateoverride AS lang_registereddateoverride,
                       language.calformat1override AS lang_calformat1override,
                       language.calformat2override AS lang_calformat2override,
                       language.logdateoverride AS lang_logdateoverride,
                       language.decimalsep AS lang_decimalsep,
                       language.thousandsep AS lang_thousandsep

               FROM user AS user
               LEFT JOIN userfield AS userfield ON (user.userid = userfield.userid)
               LEFT JOIN usertextfield AS usertextfield ON (usertextfield.userid = user.userid) LEFT JOIN language AS language ON (language.languageid = IF(user.languageid = 0, 1, user.languageid))

               WHERE user.userid = 3186;

MySQL Error   : Table 'champ_site.user' doesn't exist
Error Number  : 1146
Request Date  : Wednesday, February 17th 2010 @ 04:27:09 PM
Error Date    : Wednesday, February 17th 2010 @ 04:27:09 PM
Script        : http://www.wrestlingconcepts.com/
Referrer      :
IP Address    : 109.96.188.93
Username      :
Classname     : vB_Database
MySQL Version :
and another one

Code:
Database error in vBulletin 3.8.2:

Invalid SQL:

                               SELECT *
                               FROM session
                               WHERE userid = 0
                                       AND host = '189.187.55.187'
                                       AND idhash = '08c475b42ddc9d99006a9f28c61fb43a'
                               LIMIT 1;

MySQL Error   : Table 'champ_site.session' doesn't exist
Error Number  : 1146
Request Date  : Wednesday, February 17th 2010 @ 04:28:32 PM
Error Date    : Wednesday, February 17th 2010 @ 04:28:32 PM
Script        : http://wrestlingconcepts.com/
Referrer      : http://www.google.it/search?hl=en&q=wrestling+concepts&btnG=B%FAsqueda+e+Google&meta=
IP Address    : 189.187.55.187
Username      :
Classname     : vB_Database
MySQL Version :
i copy pasted this from my email .. im getting like hundreds of these error emails everytime i refresh my email inbox.
Reply With Quote
  #5  
Old 02-17-2010, 01:49 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

From the errors you posted it seems as if the restore of the db was not done properly as you are missing some db tables (user and session tables).
Reply With Quote
  #6  
Old 02-17-2010, 02:13 PM
Khan_ Khan_ is offline
 
Join Date: Sep 2009
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what do i do now ...
Reply With Quote
  #7  
Old 02-17-2010, 02:23 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tell your host to make a proper restore of the db.

Do you have a backup copy of the db? Try this first, login to the phpmyadmin and check the db tables, if more tables are missing. Then pull them out of the db backup copy (the missing tables) and restore them. That is the easiest and quickest way. That should get your forum back up and running. If the other tables have been restored properly, that is.

Personally, I am surprised that your host did such a messy restore. Any host worth its salt shouldn''t have caused such a problem.
Reply With Quote
  #8  
Old 02-17-2010, 02:32 PM
Xencored Xencored is offline
 
Join Date: Sep 2008
Location: UK, Scuny
Posts: 1,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you do a full restore


Table 'champ_site.session' doesn't exist is missing somekind of addon maybe

Find your Config.php
Edit it after the <?php add

PHP Code:
define('DISABLE_HOOKS'true); 
save it and see if you can get on your site with addons disabled
Reply With Quote
  #9  
Old 02-17-2010, 02:44 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is about default tables and has nothing to do with a modification so disabling those will not make a difference.
Quote:
Originally Posted by Animemike View Post
Did you do a full restore


Table 'champ_site.session' doesn't exist is missing somekind of addon maybe

Find your Config.php
Edit it after the <?php add

PHP Code:
define('DISABLE_HOOKS'true); 
save it and see if you can get on your site with addons disabled
Reply With Quote
  #10  
Old 02-17-2010, 02:46 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To troubleshoot this first use a tool like phpMyAdmin to inspect the database the host created for you.

Are the tables there? If not, then the restore was not successfull and you would need to get back to your host. If still available, compair the database to your old database.

If the tables exist are they maybe using a table-prefix and you have uploaded a fresh config.php without a prefix. If so, set the correct prefix in your config.php.
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 01:07 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04419 seconds
  • Memory Usage 2,261KB
  • 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
  • (2)bbcode_code
  • (2)bbcode_php
  • (1)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