Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Apr 2004
    Posts
    31

    Default How to backup + restore large databases?

    Using the cpanel method sucks because it crashes my browser when I try restoring large databases since it outputs the entire input file to my browser, and I don't have SSH access.

    Any other methods to backup and restore?
    // Gary

  2. #2
    Member sawbuck's Avatar
    Join Date
    Jan 2004
    Posts
    1,313
    cPanel/Enkompass Access Level

    Root Administrator

  3. #3
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Another option is to use phpmyadmin and make sure that you select:

    Save as file
    zipped

    Since most MySQL data is text it should compress down nicely, and you will then e presented with a file to download. You can also restore a zipped file through phpmyadmin.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  4. #4
    Member
    Join Date
    Nov 2004
    Posts
    6

    Lightbulb

    Try the attached file.
    Unpack it and upload it to your webdirectory.

    Set the variables in tool_settings.php to match your data of the database and set a password if you intend to keep the file on your server in mysql_tool.php.

    Upload your database.sql in the same folder.

    Open mysql_tool.php trough your webbrowser and follow online instruction on how to restore the database.

    Basicaly this tool enables you to restore large databases without the timeout you will receive trough php (e.g. phpMyAdmin).
    It cuts your database in little pieces and processes them, taking the next step where it left off the last time (it counts in %)

    At the end you get restoration complete, and the whole database is back in place.
    I've done this with databases over 200 MB without any problems.

    Good luck, Mike.
    Attached Files

  5. #5
    FWC
    FWC is offline
    Member
    Join Date
    May 2002
    Location
    Ontario, Canada
    Posts
    354

    Default

    Do it from the command line:

    mysql -u dbusername -p dbname < /path/to/backup.sql

  6. #6
    Member
    Join Date
    Nov 2004
    Posts
    6

    Red face

    Quote Originally Posted by FWC
    Do it from the command line:
    Quote Originally Posted by GaryW
    and I don't have SSH access.
    He doesn't have shell access, so most likely no command line
    That's why he asked for alternatives to restore a large database.

  7. #7
    Member sawbuck's Avatar
    Join Date
    Jan 2004
    Posts
    1,313
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Have taken the liberty of re-attaching the file originally posted by LiquidAtoR as the recent forum server change corrupted the avatars but also apparently previously attached files.
    Attached Files

Similar Threads & Tags
Similar threads

  1. Large Mysql restore file - timeout
    By jeroman8 in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 05-05-2008, 12:36 PM
  2. Large mySQL databases
    By dmtnet in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-01-2008, 04:01 AM
  3. Trying to restore large mySQL database
    By thehostrack in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 08-01-2007, 03:17 PM
  4. Moving a site with large databases
    By Furby68 in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 08-10-2006, 10:31 AM
  5. cpbackup and large databases
    By Brian_Wilson in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 07-30-2005, 06:40 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube