Importing Large Backups

Discussion in 'MySQL' started by cancer10, Feb 25, 2009.

  1. #1
    Hi


    I have a 600 MB .sql dump which I got from someone.

    I need to import that .sql file to my database. PHPmyadmin does not allow that big files to import. The desktop based mysql client (SQLYog) which I am using to manage MySQL databases, also crashes while importing.

    I am on a windows system. Could you please suggest me a better and effective way to import it?


    Thanx in advance.
     
    cancer10, Feb 25, 2009 IP
  2. crivion

    crivion Notable Member

    Messages:
    1,669
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    3
    #2
    Did you heard about bigdump.php? that would help you or if not search for a sql splitter which will split your dump into smaller files and makes things easier
     
    crivion, Feb 25, 2009 IP
  3. ActiveFrost

    ActiveFrost Notable Member

    Messages:
    2,072
    Likes Received:
    63
    Best Answers:
    3
    Trophy Points:
    245
    #3
    SSH or BigDump ( th, SSH is always an easier way for me ) ..
     
    ActiveFrost, Feb 25, 2009 IP
  4. cancer10

    cancer10 Guest

    Messages:
    364
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hi sir

    I am sorry but since I am on windows, SSH is not supported.


    Thanx
     
    cancer10, Feb 25, 2009 IP
  5. Rian

    Rian Well-Known Member

    Messages:
    1,763
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    125
    #5
    Try bigdump.

    It is very easy.

    Create a folder called dump. Make some required changes on bigdump.php. Upload bigdump.php.

    Add your sql to a zip file and upload the zip file. You can then extract the zip file on your server and run bigdump.php.

    I will attach bigdump.php to this post for you.
     

    Attached Files:

    Rian, Feb 25, 2009 IP
  6. ActiveFrost

    ActiveFrost Notable Member

    Messages:
    2,072
    Likes Received:
    63
    Best Answers:
    3
    Trophy Points:
    245
    #6
    ActiveFrost, Feb 25, 2009 IP
  7. cancer10

    cancer10 Guest

    Messages:
    364
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    hello sir

    ok plz guide me how to do it the SSH way


    Thanx
     
    cancer10, Feb 25, 2009 IP
  8. nonee

    nonee Peon

    Messages:
    109
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    If your talking about webserver uploads, I just upload it into my root directory on the server and then email my host. They handle it all :cool:
     
    nonee, Feb 26, 2009 IP
  9. cancer10

    cancer10 Guest

    Messages:
    364
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I m on a localhost FYI. So i have to handle it myself :)
     
    cancer10, Feb 26, 2009 IP
  10. ironmankho

    ironmankho Active Member

    Messages:
    393
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #10
    dude !!! importing with big dump!!!! it is very easy
     
    ironmankho, Feb 26, 2009 IP
  11. DonKon

    DonKon Well-Known Member

    Messages:
    1,033
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    130
    #11
    hey guys i need to import 400mb sql file, but big dump gives me error everytime at 10%, is there any other method, i also dont have ssh allowed on my shared hosting
     
    DonKon, Feb 27, 2009 IP