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 12-31-2005, 03:02 PM
Paul Ward Paul Ward is offline
 
Join Date: Dec 2005
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Moving servers

Hi,

Not sure if this is the right place for this. I'm in the process of moving server at my current host and wondered what the best of going about moving my VBulletin forum is?

So far:

Uploaded all site files to new IP address
Downloaded current VBulletin files to desktop
Upload files from desktop to new IP address

Next step I guess is to set up my new MySQL database and then down/upload the existing database to it.

Does anyone know if this will work? Do I need to go through a new install on the new IP address? Is there anything I should do in advance?

I'm trying to pre-empt problems in advance rather than do it find it doesn't work and then have to get it working again.
Reply With Quote
  #2  
Old 12-31-2005, 04:50 PM
docvader's Avatar
docvader docvader is offline
 
Join Date: Dec 2002
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm in the process of doing the same. According to vbulletin.com's instructions, your understanding is correct. You'll need to change the database/server settings in your config.php file once you've reuploaded your vbulletin files. You might also have to, after getting it all to work, alter some things in vbulletin admin area, such as the bb url setting. Uploading your vb files, making sure permissions are ok, and reconnecting to the newly uploaded and created database via includes/config.php, should do it.

The problem is, moving the databases. Especially if you have a large one. And, if you don't have ssh or telnet access on your new server.

PhpMyAdmin generally will not accept database transfers above 2mb. Which, doesn't do us any good. I've found that bigdump (http://www.ozerov.de/bigdump.php) is the way to do. Instructions are on that site. I've got some suggestions, however, if you go the bigdump route.

Run PhpMyAdmin and dump your database into a text sql file. You can either run the entire vb database at once, or, successively back up portions of the tables into different sql text files (and name them a.sql, b.sql, c.sql, putting all of the tables starting with "a" into the a.sql dump, etc).

Alter bigdump.php settings so that they match your msql user ID and password, table's settings.

Upload your text sql backups and bigdump.php into a "dump" directory on your new server.

Run http://yoursite/dump/bigdump.php

Now, the problem may arise, if you have a large database, whereby the new server will not allow more than 50000 "questions" per user. The install of your dump will fail. So, to bypass this problem, you need to create more users in mysql in your new server. How to do this depends upon the host that you have. Sometimes you can do it in your new host's control panel. Create ten or twenty more mysql users, that can access the new vbulletin database that you already created, and give them the same mysql access password. Then alter your bigdump.php file to include the new users. You get more "questions" as you reinstall the database, thus bypassing this error. I can tell you how to write this, if you go this route.

Alternatively, if you have ssh access, it's much easier.

To backup your mysql database (open a ssh window):
mysqldump --opt -Q -u dbusername -p databasename > /path/to/backupname.sql

New mysql don't require the opt command or q, you can sometimes do this:
mysqldump -u dbusername -p databasename > /path/to/backupname.sql

Upload "backupname.sql" to your new server, and restore:
mysql -u dbusername -p databasename < /path/to/backupname.sql

That's the easiest way, if you have ssh access.

Restoring via phpmyadmin, if it's a large file, will give you problems. phpmyadmin is not very good at working with large database restorations. Uploading table by table, especially if you have a heavily hacked board as I do, is a time consuming nigtmare, which is why I use my very unscientific a, b, c ... method.

Another option is to do a phymyadmin gzip or text dump of your entire database, upload it to your new server, and ask tech support to reimport it into the new database that you (or they) created.

Good luck. It's not an easy issue if you don't have ssh access, but bigdump works in most cases. And, as I've discovered, sometimes you have to "trick" the mysql server into using it successfully

rich
russbo.com
Reply With Quote
  #3  
Old 12-31-2005, 04:53 PM
baronvonwalz baronvonwalz is offline
 
Join Date: Apr 2005
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The best way to do it is to ask your current host for a database backup, which you then hand over to your new host for integration onto the new server.
Reply With Quote
  #4  
Old 12-31-2005, 06:06 PM
Paul Ward Paul Ward is offline
 
Join Date: Dec 2005
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the replies guys, especially docvaders impressively comprehensive one!

My database isn't that large, so hopefully it will go fairly smoothly, I'm going to leave it until tomorrow, so I have time to sort problems if necessary.

I'm moving servers with the same host - victim of my own success I'll come back and tell you how it went.

Thanks again.
Reply With Quote
  #5  
Old 01-01-2006, 02:48 PM
BoardTracker's Avatar
BoardTracker BoardTracker is offline
 
Join Date: Dec 2005
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you have ssh access an easy way to transfer a large mysql db is with scp. Just create the db on the new server then shutdown the db completely (on both servers) then scp the whole lot in one go to the new server and then make sure the tables on the new server are owned by mysql (chown mysql:mysql /path/to/yourdb/*) and restart mysql there. It should all be working fine as long as you created the appropriate db accounts (grant) etc. I've used this method often to copy db's with many gigs of data.

Something like this would do it..

scp /path/to/mysql/yourdb/* username@newserver.com:/path/to/mysql/yourdb/

if 'username' does not have access to /path/to/db/yourdb/ then just scp to whatever directory it does have access to (/home/username/tempdb/ for example) and then do a local copy/move to the appropriate mysql directory.

Check the man for scp options (man scp), test it with non-essential files/directories first and of course always make sure you have a backup before doing anything!

You could also use rsync over ssh (rsync -a -e ssh /full/path/* user@newserver:/full/path/) which is handy but seems a bit slower than scp alone.

Oh and make sure you have enough disk space on the new server before copying or you will end up with a broken db there.

You could also do a local copy first, zip/gzip the files then scp to the new server and unzip.. depending on your needs it may or may not be faster.
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 05:52 PM.


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.03667 seconds
  • Memory Usage 2,207KB
  • 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
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)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
  • 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