Help: Cannot backup DB - Urgent

Discussion in 'MySQL' started by Blinksy, May 13, 2007.

  1. #1
    Hi.

    I have been trying to get a backup of my DB, but every time it gets to the main part(when downloading), it stops the export short. I believe this may be a timeout?

    Provider are also having the same problem through ssh. I cannot get it through phpmyadmin.

    Uploading is no problem as i use bigdump, but i cannot get a complete copy.

    Any ideas?

    Thanks
     
    Blinksy, May 13, 2007 IP
  2. Will.Spencer

    Will.Spencer NetBuilder

    Messages:
    14,789
    Likes Received:
    1,040
    Best Answers:
    0
    Trophy Points:
    375
    #2
    There should be no timeout issues through SSH.

    That makes me think to look elsewhere, like a database corruption issue or a drive failure.

    Is it a MySQL database?
     
    Will.Spencer, May 13, 2007 IP
  3. Blinksy

    Blinksy Well-Known Member

    Messages:
    415
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #3
    Yes Sir, a MySQL DB.

    Getting a variation in sizes every time I try to Backup :(
     
    Blinksy, May 13, 2007 IP
  4. Blinksy

    Blinksy Well-Known Member

    Messages:
    415
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #4
    Its ok. I will back it up table by table :)
     
    Blinksy, May 13, 2007 IP
  5. gandaliter

    gandaliter Peon

    Messages:
    64
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Isn't it possible in phpmyadmin to export the entire database and have it display the code, rather than download a file? I think you go to export and then select all of the tables, and choose not to save as a file.
     
    gandaliter, May 13, 2007 IP
  6. Blinksy

    Blinksy Well-Known Member

    Messages:
    415
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #6
    Yes that is possible. However, I believe the browser times out at a certain time, and it is not possible for large DBs, or slow connections.

    My DB is over 100meg.. So yeh, hard to manage
     
    Blinksy, May 13, 2007 IP
  7. alamster

    alamster Peon

    Messages:
    41
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    if possible, install php exec plugin then use passthru (if supported) to backup your database like in ssh environment.

    passthru("mysqldump -uuser -ppassword db_name > result_db.sql");
     
    alamster, May 13, 2007 IP
  8. JEET

    JEET Notable Member

    Messages:
    3,832
    Likes Received:
    502
    Best Answers:
    19
    Trophy Points:
    265
    #8
    If nothing works, you can also try and create "files" on your hosting account using "php".
    ---
    Select a table (can do in 1 query), start a loop.
    fetch all data for a single row.
    Form an INSERT query. (do not run)
    Append to file.
    Loop continues till all records are written.
    ---
    Do with next table.

    Then you can download the files with FTP.
    regards :)
     
    JEET, May 13, 2007 IP