vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   General Hosting/Server Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=197)
-   -   Help Splitting a Batabase (https://vborg.vbsupport.ru/showthread.php?t=167326)

JimmiOO 01-09-2008 07:30 AM

Help Splitting a Batabase
 
Hi

Im in the process of moving server, I am getting a problem trying to import my database to my new server. I have to up the data in 5meg segments but have no idea how to split the data, is there a program that you can use to do it?

I only have apache / mysql / php installed on my pc, There is a program that splits it for you but you have to have Microsoft SQL Server installed and it doesnt seem to conect to mysql, or its my inability to get it working lol.

Any help will be appreciated :)

Marco van Herwaarden 01-09-2008 07:33 AM

The only reliable method of backing up and restoring a database is with shell access via telnet or ssh. This is because backing up with a PHP script like that in the Admin CP or phpMyAdmin can result in PHP timeouts errors and an incomplete backup file. Please see the instructions here:

Backup:
http://www.vbulletin.com/docs/html/m...nce_ssh_backup

Restore:
http://www.vbulletin.com/docs/html/m...ce_ssh_restore

P.S. If you don't have shell access, some people have also reported success with these scripts:

MySQLDumper:
http://www.mysqldumper.de/en/index.php

MySQLHotxcopy:
http://www.vbulletin.com/forum/showt...t=mysqlhotcopy

Bigdump:
http://www.ozerov.de/bigdump.php

unitedpunjab 01-09-2008 08:27 AM

  • Install mysqldumper on old server
  • backup and download database to your computer.
  • Install mysqldumper on new server
  • Ftp database to new server.
  • Restore using mysqldumper.
http://www.mysqldumper.de/en/index.php

JimmiOO 01-09-2008 09:44 AM

Quote:

Originally Posted by unitedpunjab (Post 1418234)
  • Install mysqldumper on old server
  • backup and download database to your computer.
  • Install mysqldumper on new server
  • Ftp database to new server.
  • Restore using mysqldumper.
http://www.mysqldumper.de/en/index.php


Thanks for the info, is there a setting in mysqldumper to set the backup file size? i want to save it in 5meg sections

unitedpunjab 01-09-2008 10:01 AM

I think there is,but you can also Backup and Restore One table at time.

Is 5mb your php upload limit ?

JimmiOO 01-09-2008 10:51 AM

the 5 meg is my host limit, i can upload large files using bigdump.php but i keep getting an error and have been advised to upload it in 5meg sections. I have got all the tables up now apart from the attachments table which is quite large. is there away of taking the attachments out before the back up then reinstate them?

unitedpunjab 01-09-2008 11:22 AM

That limit does not apply to FTP upload,you can upload database through FTP and restore it from there,

If its just the attachment table problem,then you can move all attachments from database to file system,

here is the manual to that

http://www.vbulletin.com/docs/html/a...rage_db_to_fs1

JimmiOO 01-09-2008 11:29 AM

Hi i just came across that when viewing my attachments thanks for your help, the smaller database should import ok now and i can just ftp the home dir with attachments included, well i hope thats how it will work.

Thanks for your help guys


All times are GMT. The time now is 05:40 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.01119 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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