Results 1 to 7 of 7

Thread: Backup and restore MySQL DBs

  1. #1
    Member
    Join Date
    Apr 2003
    Location
    Racine, WI
    Posts
    244

    Default Backup and restore MySQL DBs

    I backed up my MySQL DBs from one of oru main accounts using the MySQL backup feature in CPanel. I saved them to my compute (they were .gz files). I then tried restoring them on a different machine using CPanel and it does not work. It creates the database but no tables are restored. All the data must be therebecause the file sizes of the .gz files vary greatly. Can anyone help?
    Ben McClure
    andHosting.com

  2. #2
    Member mark1's Avatar
    Join Date
    Jan 2003
    Posts
    56

    Default

    Hi,
    could be the size of the file?

    Extract the content on your desktop, and rename it filename.sql (just add the ".sql")
    then from cPanel goto phpMyAdmin, from there select your database, then select SQL, then browse and upload the file.

    If the file is too large, upload the file to your server and via SSH run the following command, remember to change the details with the correct details.

    mysql -u root -p username_database < filename.sql

    you will need the root mysql password.

  3. #3
    Member
    Join Date
    Apr 2003
    Location
    Racine, WI
    Posts
    244

    Default

    Problem:

    I already deleted the site I abcked these up from. All I have are the .gz files. I tried to open them with ZipGenius and they opened fine but were blank. That can't be, however, because one of them's almost 4 MB in size. Any ideas on hwo I can get the data? That 4 MB one is the only one I really care about, it's our customer service data for teh past year... thanks!
    Ben McClure
    andHosting.com

  4. #4
    Member mark1's Avatar
    Join Date
    Jan 2003
    Posts
    56

    Default

    Winrar will open it fine, if not then you may need to re download the file, and ensure you dont use a filemanager type program to download it with (IE DAP)

    HTH
    http://www.supportm.com

  5. #5
    Member
    Join Date
    Apr 2003
    Location
    Racine, WI
    Posts
    244

    Default

    'The archive is either in an unknown format or has been damaged."

    There's no other way to do it? I already deleted the accounts foolishly from the old server so thsi is the only backup I have from anytime recently...
    Ben McClure
    andHosting.com

  6. #6
    Member mark1's Avatar
    Join Date
    Jan 2003
    Posts
    56

    Unhappy

    nope, you may have to use a older backup if you have 1, unless someone else has a better idea, sorry!
    http://www.supportm.com

  7. #7
    Member
    Join Date
    Nov 2003
    Location
    Singapore
    Posts
    72

    Default

    Originally posted by bmcclure
    Problem:

    I already deleted the site I abcked these up from. All I have are the .gz files. I tried to open them with ZipGenius and they opened fine but were blank. That can't be, however, because one of them's almost 4 MB in size. Any ideas on hwo I can get the data? That 4 MB one is the only one I really care about, it's our customer service data for teh past year... thanks!
    Hi,

    I agree with mark1 suggestion that you open the .gz file with WINRAR.

    Since you mention it's 4MB, I suspect they are a TMP folder.
    In in contains:
    AWSTATS, ANALOG, WEBALIZER, WEBALIZERFTP and that folder contain files.

    You really need to be able to untar the .gz file to see the contents.

    I wish you good luck in recovering your files.

    Rgds,
    Vincent
    http://www.eazistore.com

Similar Threads

  1. Restore backup but not mysql database
    By isputra in forum Data Protection
    Replies: 1
    Last Post: 07-20-2010, 08:53 AM
  2. Best way to backup all MySQL DBs on daily basis ?
    By WebHostDog in forum cPanel & WHM Discussions
    Replies: 6
    Last Post: 07-08-2007, 02:36 AM
  3. (s)ftp backup of just mysql dbs?
    By spaceman in forum cPanel & WHM Discussions
    Replies: 8
    Last Post: 01-11-2006, 11:00 PM
  4. Problem with restore MySQL backup
    By jprl12 in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 05-06-2005, 11:59 PM
  5. MySQL Backup/Restore Problem
    By derekivey in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 04-10-2005, 09:24 AM