Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-14-2014, 03:37 AM
natsu287 natsu287 is offline
 
Join Date: Jun 2014
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Database Error :(

I was trying to create a test environment, but in the middle of it, I accidently deleted the database that my forum was using through Webmin

My control Panel is Virtualmin/Webmin on CentOS Server

So I followed the step's in creating the database for Webmin:
http://linuxconsultant.info/tutorial...min.html#mysql

Then at the end, I Imported the .sql file of my forum into the new database I created with the new user/pass

But I still get

Database error

Also after the import, I can see the Databse and tables all through PHPMYADMIN, as well, I also did not forget to edit the config.php file

what am I doing wrong?

Here is what I did
-Created a new user called "newforums with a password (for example: dbtest101)
-Set the host to localhost
-Selected All permissions

Then I am going create the database
-Called it also "newforums" and left the default settings for the resst

Then I am going to create the permission
- Selected the "newforums" database, and chose "newforums" as the user
- Set the host to localhost
- Selected all permissions

Then I selected the database, did "excecute sql", then I browed for my vb database forums, and the I waited about 2-5min, no error's.

I can then see all 208 table's and also when I log into PHPMYADMIN, I can see it all there too!

So I go into the includes\config.php, I edit the dbname, username, and password, then I save it

Then I go to my link, still database error!

I Must be doing something wrong
Reply With Quote
  #2  
Old 06-14-2014, 08:33 AM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And do you know what the database error is?
Reply With Quote
  #3  
Old 06-14-2014, 01:58 PM
natsu287 natsu287 is offline
 
Join Date: Jun 2014
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dave View Post
And do you know what the database error is?

Database Error Database error
The XXXX Forums database has encountered a problem.
Please try the following:
Load the page again by clicking the Refresh button in your web browser.
Open the xxxxxxxxxxx.tv home page, then try to open another page.
Click the Back button to try another link.
The xxxxxxxxxxx.tv forum technical staff have been notified of the error, though you may contact them if the problem persists.

We apologise for any inconvenience.
Reply With Quote
  #4  
Old 06-14-2014, 02:02 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You need to get the actual error from your server error logs. Of you don't know where those are, you need to contact your host.
Reply With Quote
  #5  
Old 06-18-2014, 11:55 PM
natsu287 natsu287 is offline
 
Join Date: Jun 2014
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I will contact my host
Reply With Quote
  #6  
Old 06-23-2014, 11:32 AM
natsu287 natsu287 is offline
 
Join Date: Jun 2014
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok my host told me this

Quote:
<!--
Database error in vBulletin 5.1.1:

Invalid SQL:

SELECT languageid,
phrasegroup_global AS phrasegroup_global,
phrasegroup_activitystream AS phrasegroup_activitystream,
phrasegroup_holiday AS phrasegroup_holiday,
phrasegroupinfo AS lang_phrasegroupinfo,
options AS lang_options,
languagecode AS lang_code,
charset AS lang_charset,
locale AS lang_locale,
imagesoverride AS lang_imagesoverride,
dateoverride AS lang_dateoverride,
timeoverride AS lang_timeoverride,
registereddateoverride AS lang_registereddateoverride,
calformat1override AS lang_calformat1override,
calformat2override AS lang_calformat2override,
logdateoverride AS lang_logdateoverride,
decimalsep AS lang_decimalsep,
thousandsep AS lang_thousandsep
FROM language
WHERE languageid = 1;

MySQL Error : Unknown column 'phrasegroup_activitystream' in 'field list'
Error Number : 1054
Request Date : Monday, June 23rd 2014 @ 11:18:27 AM
Error Date : Monday, June 23rd 2014 @ 11:18:27 AM
Script : http://yourwebsite.tv/forums/
Referrer : http://yourwebsite.tv/
IP Address : 80.82.71.7
Username :
Classname : vB_Database_MySQLi
MySQL Version :

Stack Trace:

#0 vB_Database-&gt;halt() called in [path]/includes/class_core.php on line 1402
#1 vB_Database_MySQLi-&gt;execute_query() called in [path]/includes/class_core.php on line 503
#2 vB_Database-&gt;query_first() called in [path]/includes/class_core.php on line 534
#3 vB_Database-&gt;query_first_slave() called in [path]/includes/class_core.php on line 4099
#4 vB_Session-&gt;fetch_userinfo() called in [path]/includes/init.php on line 651
#5 require_once([path]/includes/init.php) called in [path]/includes/class_bootstrap.php on line 101
#6 vB_Bootstrap-&gt;init() called in [path]/includes/class_bootstrap.php on line 72
#7 vB_Bootstrap-&gt;bootstrap() called in [path]/global.php on line 26
#8 require_once([path]/global.php) called in [path]/forum.php on line 67
#9 require([path]/forum.php) called in [path]/index.php on line 43


-->

Basically, it's missing a column "phrasegroup_activitystream"
I did a complete backup of my VB4.2.2 before it crashed, first of all why is it saying 5.1.1? Also how do I fix this please! Anyone?
Reply With Quote
  #7  
Old 06-23-2014, 11:51 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How did you set up your test environment? Is it possible that you somehow are using vb5 files?
Reply With Quote
  #8  
Old 06-23-2014, 11:57 AM
natsu287 natsu287 is offline
 
Join Date: Jun 2014
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
How did you set up your test environment? Is it possible that you somehow are using vb5 files?
no my vb5 was created on a sub-server called forums.yourwebsite.tv on a sub-server and called the database "forums".

I deleted the entire sub-server "forums" which also deleted the username and database which were entitled "forums"

I then followed the steps to create a new database and I put it on the main yourwebsite.tv server (not a sub-server), and I called it forums_vb4

so I exported the forums_vb4 into a sql file (got 206 table'\s)

then as I was messing around to make test.yourwebsite.tv I actually deleted the "forums_vb4" table by accident

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

anyone?
Reply With Quote
  #9  
Old 06-25-2014, 11:33 AM
natsu287 natsu287 is offline
 
Join Date: Jun 2014
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone know how to fix this? It's urgent my forums have been down for over a week!
Reply With Quote
  #10  
Old 06-25-2014, 04:37 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you are using a 4.2.2 database, then you need to upload 4.2.2 files to your site. If you uploaded 5.x files to your site (and want to upgrade to 5.x which isn't suggested unless you have already tested this on a test site), then you need to run the upgrade script.
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:09 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.04618 seconds
  • Memory Usage 2,260KB
  • 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
  • (3)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