Restoring a big database

Discussion in 'MySQL' started by logiik, May 11, 2007.

  1. #1
    A big forum of mine recently went down and I have a backup of the MySQL database. It runs on vBulletin.

    I want to install a fresh copy of vBulletin and then import the database that I have backed up.

    The only way that I know how to do this is through phpmyadmin. The only problem that I have is that it's about 50mb so importing it through the browser lags out or doesn't complete.

    Is there a method or way that I could use to do this more effectively and quickly?

    Any help or suggestions would be greatly appreciated.Thanks!
     
    logiik, May 11, 2007 IP
  2. SoKickIt

    SoKickIt Active Member

    Messages:
    305
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    70
  3. vagrant

    vagrant Peon

    Messages:
    2,284
    Likes Received:
    181
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i use a script called "bigdump" ... it works very well for me.

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

     
    vagrant, May 11, 2007 IP
  4. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #4
    And if you don't have shell access, put the backup in a folder on your server and write a simple PHP script that does a LOAD.
     
    T0PS3O, May 11, 2007 IP
  5. gibex

    gibex Active Member

    Messages:
    1,060
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    95
    #5
    best solution : mysql -u username -psomepass database < dump.sql
     
    gibex, May 12, 2007 IP
  6. Clark Kent

    Clark Kent Guest

    Messages:
    122
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Install mysqldumper (mysqldumper.de/en).
    Upload your sql backup file to ftp.
    Execute it with mysqldumper web interface.
     
    Clark Kent, May 13, 2007 IP
    sweetfunny likes this.
  7. logiik

    logiik Active Member

    Messages:
    99
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    63
    #7
    Ok, I finally have access to my computer to start the restoring process.

    The backup of the database is 246MB. It'll take me probably a day to upload it lol.

    Is there any way to split the file and then join the files once they're uploaded onto the web host?
     
    logiik, May 22, 2007 IP
  8. gibex

    gibex Active Member

    Messages:
    1,060
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    95
    #8
    archive with volumes
     
    gibex, May 22, 2007 IP
  9. logiik

    logiik Active Member

    Messages:
    99
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    63
    #9
    archive with volumes? can you explain more on that?
     
    logiik, May 22, 2007 IP
  10. phpbb24

    phpbb24 Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    phpbb24, May 23, 2007 IP
  11. sweetfunny

    sweetfunny Banned

    Messages:
    5,743
    Likes Received:
    467
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Repped BIG TIME!

    MySqlDumper is nothing short of brilliant, i've been using flakey BigDump for years and i almost give up on a project today when it kept locking up importing a 360MB database on to my slow host.

    Thought i would give MySqlDumper a go, all i can say is wow. Lightning fast, simple, a bunch of stats on the screen keeping you informed about the import etc.

    Anyone who uses BigDump, ditch it and give MySqlDumper a go.
     
    sweetfunny, May 25, 2007 IP
  12. Clark Kent

    Clark Kent Guest

    Messages:
    122
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I am glad you liked it. MysqlDumper is really amazing. I don't remember how I am leaving without it :) It is lifesaver.
     
    Clark Kent, May 25, 2007 IP
  13. sweetfunny

    sweetfunny Banned

    Messages:
    5,743
    Likes Received:
    467
    Best Answers:
    0
    Trophy Points:
    0
    #13
    It's brilliant, my hosts MySql is very slow.. I get alot of 404's just doing an export through phpMyAdmin on a database under 1MB.

    MysqlDumper imported the 360MB database like a hot knife through butter, the whole time displaying stats on speed, table it was up to etc. I tried Bigdump probably 12 times and it failed 3/4 in to the import and was about to give up, now i got a 50k article website. :D

    I wish i could rep you a couple more times. :)
     
    sweetfunny, May 26, 2007 IP
  14. jbladeus

    jbladeus Peon

    Messages:
    485
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Mysql dumper has come to my rescue a number of times.
    Compelled me to making a somewhat healthy donation on their site. :)
     
    jbladeus, May 26, 2007 IP
  15. nks

    nks Well-Known Member

    Messages:
    1,602
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    160
    #15
    Make sure it is highly compressed, e.g. archive it with tar.gz.

    Then, upload using phpMyAdmin, hopefully that the file after archiving will be smaller.
     
    nks, May 26, 2007 IP
  16. sampk2002

    sampk2002 Banned

    Messages:
    2,202
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #16
    i upload Today 375mb through ftp and Use BigDump Its Work Great for Me I done My Work In 5 Hours 4 hours Upload and 1 Hour to restore Look Like Bullet work for me Thax to This Topic :) Peace
     
    sampk2002, May 27, 2007 IP
  17. excaliburwebdesigners

    excaliburwebdesigners Peon

    Messages:
    501
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #17
    Hello Clark AKA Superman, LOL

    You are a star, i was having all kinds of problems with bigdump and a 380mb mysql database. installed mysqldumper and it works a treat REP++
     
    excaliburwebdesigners, May 28, 2007 IP