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

Reply
 
Thread Tools Display Modes
  #1  
Old 07-06-2007, 08:06 PM
Rocksuperman Rocksuperman is offline
 
Join Date: Jul 2006
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Database Issue - Please Help

OK,

I put this thread in here as I believe it's generally vBulletin and not MySQL.. if it's not in the correct area, Staff please move it.


I have used DirectAdmin, moved to a different host and have done this:

1) Used MySQL Dumper to restore vBulletin.sql to a new database "wltd_forum"
2) Fully restored and working, and filled out the new config.php
3) I get a Database Error.. my email stated the following:

Code:
MySQL Error  : Table 'wltd_forum.wltddatastore' doesn't exist
Error Number : 1146
I believe it may be because my old database wasn't called wltd_forum, and maybe a different header such as wltd_foruma (although I can't access what it used to be called).

Anyone who is able to help me fully will earn themselves $5 in PayPal as I appreciate the people who help here on vB.org. Without you guys I'd be stuck a lot of the time.


Cheers!
Reply With Quote
  #2  
Old 07-06-2007, 08:10 PM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Rocksuperman View Post
OK,

I put this thread in here as I believe it's generally vBulletin and not MySQL.. if it's not in the correct area, Staff please move it.


I have used DirectAdmin, moved to a different host and have done this:

1) Used MySQL Dumper to restore vBulletin.sql to a new database "wltd_forum"
2) Fully restored and working, and filled out the new config.php
3) I get a Database Error.. my email stated the following:

Code:
MySQL Error  : Table 'wltd_forum.wltddatastore' doesn't exist
Error Number : 1146
I believe it may be because my old database wasn't called wltd_forum, and maybe a different header such as wltd_foruma (although I can't access what it used to be called).

Anyone who is able to help me fully will earn themselves $5 in PayPal as I appreciate the people who help here on vB.org. Without you guys I'd be stuck a lot of the time.


Cheers!
No need to donate anything and you have found the cause of the problem yourself you cannot use a new config on a restored database (look at the tableprefix and such) it must match the variables also some control panels (i'm sure Cpanel does don't have directadmin) require you to use a specific format when connecting to MySQL (if you created the database through the control panel)
Reply With Quote
  #3  
Old 07-06-2007, 08:18 PM
Rocksuperman Rocksuperman is offline
 
Join Date: Jul 2006
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So how would I fix this?

I used to use cPanel and now I use DirectAdmin.
Same version of vBulletin 3.6.7PL1.

I would need to know the old prefix "wltd_exampleold", create a new database with that name, and then insert the backup contents into that? I'm quite new to MySQL in general so a 'tutorial' to fix would be extremely appreciated by a newcomer to programming such as me

Thanks once again!
Reply With Quote
  #4  
Old 07-06-2007, 08:21 PM
EnIgMa1234 EnIgMa1234 is offline
 
Join Date: Mar 2006
Location: .:: Ireland ::.
Posts: 1,306
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

table prefix in config.php would be wltd
new database name would be whatever you used before

then just import using mysql dumper
Reply With Quote
  #5  
Old 07-06-2007, 08:26 PM
Rocksuperman Rocksuperman is offline
 
Join Date: Jul 2006
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My original prefix is the same as the new one and is: wltd_
The database name is different - eg, old one = wltd_example and new = wltd_forum
Reply With Quote
  #6  
Old 07-06-2007, 09:09 PM
EnIgMa1234 EnIgMa1234 is offline
 
Join Date: Mar 2006
Location: .:: Ireland ::.
Posts: 1,306
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

make a new database with that name and import the backup to it

then change the settings in config.php
Reply With Quote
  #7  
Old 07-06-2007, 10:04 PM
Rocksuperman Rocksuperman is offline
 
Join Date: Jul 2006
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK,

My old database name was 'wltd_vbforum"
I have created a new database in DirectAdmin called 'wltd_vbforum' and have used MySQL Dumper to import the backup 'vbulletin.sql' and insert that data.

I have done that and changed the config.php settings.
I now get another Database Error.

I will keep messing around and will update you guys
Reply With Quote
  #8  
Old 07-06-2007, 10:14 PM
digital_sc4rz's Avatar
digital_sc4rz digital_sc4rz is offline
 
Join Date: Sep 2006
Location: Perthshire (Scotland) U.K
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What error you getting now ?
Quote:
Originally Posted by Rocksuperman View Post
OK,

My old database name was 'wltd_vbforum"
I have created a new database in DirectAdmin called 'wltd_vbforum' and have used MySQL Dumper to import the backup 'vbulletin.sql' and insert that data.

I have done that and changed the config.php settings.
I now get another Database Error.

I will keep messing around and will update you guys as you are my only hope.
Reply With Quote
  #9  
Old 07-06-2007, 10:18 PM
Rocksuperman Rocksuperman is offline
 
Join Date: Jul 2006
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oddly enough I am waiting for it to send me the error message to my email.
For some reason it's not even doing that now.
I'll keep you all updated on the situation.

It turns out DirectAdmin doesn't require the prefix (wltd_) to be entered in the config.php like cPanel does.

Thanks for all the help guys - as always
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 06:29 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.03970 seconds
  • Memory Usage 2,240KB
  • 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_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete