PDA

View Full Version : How to import 200 MB .sql backup file ?


geckoz
06-23-2009, 11:39 AM
Hi there,

can you please advise on how to import a 200 MB .sql file of a vbulletin forum? This is because I moved to a new server and I can't import a 200 MB .sql backup file of my forum using phpmyadmin.

I have root access to the server, is there a simple mysql command to import such a big .sql file?

Thanks in advance!

Dismounted
06-23-2009, 11:49 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/maintenance_ssh_backup

Restore:
http://www.vbulletin.com/docs/html/maintenance_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/showthread.php?t=134821&highlight=mysqlhotcopy

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