1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Restoring A Large Database without SSH

Discussion in 'Databases' started by lpxxfaintxx, Jul 16, 2008.

  1. #1
    Hi guys, I ran into a little problem. I can't seem to restore my database because it is too large, and it keeps on timing out on me. Usually, I'd use SSH to restore the database, but I don't have root access (shared server) so I really have no idea what to do. I read somewhere that I should split the database into little chunks, but how would I do that? I now only have a backup of the database, the original has been deleted.

    Thanks all.
     
    lpxxfaintxx, Jul 16, 2008 IP
  2. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #2
    If you can grant remote access to the database, something like Navicat may work for you. I've restored large databases (>10 GB) remotely with it without any problem. They offer a free trial and a personal version for non commercial usage: http://www.navicat.com/.
     
    jestep, Jul 16, 2008 IP
    lpxxfaintxx likes this.
  3. sawz

    sawz Prominent Member

    Messages:
    8,225
    Likes Received:
    808
    Best Answers:
    0
    Trophy Points:
    360
    #3
    use bigdump, its easy, free and works nicely.
     
    sawz, Jul 16, 2008 IP
    lpxxfaintxx likes this.
  4. lpxxfaintxx

    lpxxfaintxx Peon

    Messages:
    422
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks jestep and sawz!
     
    lpxxfaintxx, Jul 16, 2008 IP
  5. tehgamecat

    tehgamecat Peon

    Messages:
    64
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    That Bigdump looks awesome! Thanks for the link.
     
    tehgamecat, Jul 17, 2008 IP
  6. ~kev~

    ~kev~ Well-Known Member

    Messages:
    2,866
    Likes Received:
    194
    Best Answers:
    0
    Trophy Points:
    110
    #6
    Another program is MySQLDumper - http://www.mysqldumper.de/en/

    I have been using it to backup my 500+ meg VBulletin database for almost a year now. Mysqldumper compresses that 500 megs to about 100 megs, then stores it in a directory on your server. You can also download the database straight to your desktop after the backup is complete.

    While doing a restore you can pick from different backups that are on your server. So if one backup is curropt (unlikely) you can go to the next backup and restore from there. Once you have a few dozen backups in on the server, you can use the file manager to delete the backups you have downloaded to your computer.

    For really huge backups, you can FTP into the server, upload the database, then use mysqldumper to restore the database.

    Twice I have used it to restore the database and it worked fine both times. It took about 20 minutes to restore a 500+ meg database. Also, mysqldumper can backup your database by a cron job. So you can schedule regular backups. If you want a multi-part backup, or just want to back up certain tables - MySQLDumper can do all of that as well.
     
    ~kev~, Jul 17, 2008 IP
    proxywhereabouts likes this.
  7. proxywhereabouts

    proxywhereabouts Notable Member

    Messages:
    4,027
    Likes Received:
    110
    Best Answers:
    0
    Trophy Points:
    200
    #7
    MySQLDumper looks good.
    I was searching for something like that and lucky to find this post.
    Thanks for the links. Rep added!
     
    proxywhereabouts, Jul 17, 2008 IP
    ~kev~ likes this.
  8. gjvblack

    gjvblack Active Member

    Messages:
    338
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #8
    You can use PHPMYADMIN if you have one in your panel.
     
    gjvblack, Jul 17, 2008 IP
  9. Brandon Sheley

    Brandon Sheley Illustrious Member

    Messages:
    9,721
    Likes Received:
    612
    Best Answers:
    2
    Trophy Points:
    420
    #9
    it times out ;)

    nice link for the big dump
    I use ssh, but I'll keep that handy if I ever need it :)
     
    Brandon Sheley, Jul 17, 2008 IP
  10. spyrit

    spyrit Well-Known Member

    Messages:
    1,788
    Likes Received:
    94
    Best Answers:
    0
    Trophy Points:
    150
    #10
    there is also an option to do this from your cpanel. Go to backups in your cpanel and there you have the option of restoring the database, select your file from your comp and upload it. This works better than phpmyadmin and it doesn't timeout as fast.
     
    spyrit, Jul 22, 2008 IP