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

Reply
 
Thread Tools Display Modes
  #1  
Old 07-14-2011, 10:16 PM
neiljedmonds neiljedmonds is offline
 
Join Date: Feb 2010
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Importing a database

I have a running site using VB 4.1.3 and next week the site will close and a different forum will be open using a different domain name and hosting package.

Now using PhPMyAdmin I have backed up the SQL database (about 30MB), Now I have already installed Vbulletin on the new server and want to make sure ALL user data goes over to the new site. Can I just import the database from my backup or will that then mess up the settings for my new forum?.

Would I get a way with doing several exports of smaller parts of the database then importing them to the new one?.
I have installed the VB 4.1.4 on the new server.

I have looked on here but cannot find the answer.

Cheers

Neil
Reply With Quote
  #2  
Old 07-14-2011, 10:41 PM
Disasterpiece's Avatar
Disasterpiece Disasterpiece is offline
 
Join Date: Apr 2007
Location: GER
Posts: 765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by neiljedmonds View Post
Now using PhPMyAdmin I have backed up the SQL database (about 30MB), Now I have already installed Vbulletin on the new server and want to make sure ALL user data goes over to the new site. Can I just import the database from my backup or will that then mess up the settings for my new forum?.
Sure, just switch the database contents, all settings will be taken from the new db.
Keep in mind that you most likely will have to adjust some old values like forum url and the absolute forum path for vb to work.
If that occurs, upload the tools.php from the do_not_upload dir inside your vbulletin archive, this way you can repair broken database values.

Quote:
Originally Posted by neiljedmonds View Post
Would I get a way with doing several exports of smaller parts of the database then importing them to the new one?.
You should be ok with importing it all by one. It's only necessary to split it if you exceed the max. upload size or max. script execution time.


Quote:
Originally Posted by neiljedmonds View Post
I have installed the VB 4.1.4 on the new server.
This *could* become a problem, but I'm not sure. Best thing to try it out, if it doesn't work, install a fres vbulletin with the same version as your old forum and upgrade it after restoring the db.
Reply With Quote
Благодарность от:
neiljedmonds
  #3  
Old 07-15-2011, 08:25 AM
neiljedmonds neiljedmonds is offline
 
Join Date: Feb 2010
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have tried to import but got the following error:

Error

SQL query:

-- -- Dumping data for table `adminhelp` -- INSERT INTO `adminhelp` (`adminhelpid`, `script`, `action`, `optionname`, `displayorder`, `volatile`, `product`) VALUES (9006, 'usergroup', 'add,edit', 'canhiderep', 770, 1, 'vbulletin'), (9004, 'usergroup', 'add,edit', 'canuserep', 750, 1, 'vbulletin'), (9005, 'usergroup', 'add,edit', 'canseeownrep', 760, 1, 'vbulletin'), (9003, 'usergroup', 'add,edit', 'cannegativerep', 750, 1, 'vbulletin'), (9002, 'usergroup', 'add,edit', 'cancontrolpanel', 740, 1, 'vbulletin'), (9001, 'usergroup', 'add,edit', 'ismoderator', 730, 1, 'vbulletin'), (9000, 'usergroup', 'add,edit', 'canbeusernoted', 720, 1, 'vbulletin'), (8999, 'usergroup', 'add,edit', 'caneditownusernotes', 710, 1, 'vbulletin'), (8998, 'usergroup', 'add,edit', 'canpostothersusernotes', 700, 1, 'vbulletin'), (8997, 'usergroup', 'add,edit', 'canmanageothersusernotes', 690, 1, 'vbulletin'), (8996, 'usergroup', 'add,edit', 'canviewothersusernotes', 680, 1, 'vbulletin'), (8995, 'usergroup', 'ad[...]

MySQL said: Documentation
#1062 - Duplicate entry 'usergroup-add,edit-canhiderep' for key 2

Nick
Reply With Quote
  #4  
Old 07-15-2011, 10:47 AM
nhawk nhawk is offline
 
Join Date: Jan 2011
Posts: 1,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just to be sure you did it properly..

1) Upload the SAME version of vBulletin you are using now to your new server. DO NOT RUN INSTALL.

2) Backup your database on your old server.

3) Restore the database on your new server.

4) Log into new server and upgrade vB versions if needed.

See the manual for more complete instructions.. https://www.vbulletin.com/docs/html/moving_servers

It works flawlessly if you use that method. I've done it many times for many sites.
Reply With Quote
  #5  
Old 07-16-2011, 01:01 PM
neiljedmonds neiljedmonds is offline
 
Join Date: Feb 2010
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,
I have restored the database however I cannot log into the admincp as it just loops when I type in user and password. I also note that all the database info would still point to the old forum (i think) is there a way of editing this info using phpadmin (like new forum www).

Thanks for all your help.

Nick
Reply With Quote
  #6  
Old 07-17-2011, 09:24 PM
neiljedmonds neiljedmonds is offline
 
Join Date: Feb 2010
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I managed to get round this by uploading the tools.php script and resetting the cookies and url.

Nick
Reply With Quote
Благодарность от:
TheLastSuperman
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 02:29 AM.


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.03779 seconds
  • Memory Usage 2,220KB
  • Queries Executed 13 (?)
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
  • (6)post_thanks_box
  • (2)post_thanks_box_bit
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete