Thread: Moving servers
View Single Post
  #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
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01180 seconds
  • Memory Usage 1,771KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete