vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Importing a database (https://vborg.vbsupport.ru/showthread.php?t=266843)

neiljedmonds 07-14-2011 10:16 PM

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

Disasterpiece 07-14-2011 10:41 PM

Quote:

Originally Posted by neiljedmonds (Post 2220637)
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 (Post 2220637)
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 (Post 2220637)
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.

neiljedmonds 07-15-2011 08:25 AM

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

nhawk 07-15-2011 10:47 AM

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.

neiljedmonds 07-16-2011 01:01 PM

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

neiljedmonds 07-17-2011 09:24 PM

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

Nick


All times are GMT. The time now is 08:45 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.01034 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete