How do i upload 400 mb sql file? :(

Discussion in 'MySQL' started by teenager_bvs, Mar 14, 2008.

  1. #1
    Hey all.I got an ultra big sql file which i need to upload.Would it be possible to upload?Suggest any good hosting(free hosting better).Or any other way? Please.
     
    teenager_bvs, Mar 14, 2008 IP
  2. fr0gman

    fr0gman Peon

    Messages:
    684
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try these guys. They have great prices and they tech guys will install the SQL for you.
     
    fr0gman, Mar 14, 2008 IP
  3. amazingronit

    amazingronit Well-Known Member

    Messages:
    1,334
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    130
    #3
    Yeah i have a similar question. Not about hosting (i get enough space), but is it possible to upload such a huge database in fragments? if so, how to get it to work?
     
    amazingronit, Mar 14, 2008 IP
  4. fr0gman

    fr0gman Peon

    Messages:
    684
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You can upload it and then install it from the command line. The MySQL web interface will not import a file that large.
     
    fr0gman, Mar 14, 2008 IP
  5. amazingronit

    amazingronit Well-Known Member

    Messages:
    1,334
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    130
    #5
    would you mind to explain?
     
    amazingronit, Mar 14, 2008 IP
  6. The Seeker

    The Seeker Banned

    Messages:
    121
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I think,you can do that by exporting it to tar.gz,so that it will get compressed and you can have a bit small file..
     
    The Seeker, Mar 15, 2008 IP
  7. ferrari61

    ferrari61 Peon

    Messages:
    71
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Depends on 1) can you compress [and then more importantly] uncompress the file once uploaded? 2) transfer speed while uploading

    Don't know if you'll get SQL for free though - good luck.
     
    ferrari61, Mar 15, 2008 IP
  8. NoobieDoobieDo

    NoobieDoobieDo Peon

    Messages:
    1,456
    Likes Received:
    53
    Best Answers:
    0
    Trophy Points:
    0
    #8
    1. Put the sql file on your server
    2. Get bigdump.php
    3. Configure big dump w/the correct sql connection info
    4. Put bigdump.php on your server
    5. Browse to http:/yoursite.com/bigdump.php
    6. Select the sql file
    7. Success

    If you have any issues please contact me and I can assist you for a small fee.
     
    NoobieDoobieDo, Mar 15, 2008 IP
  9. AoN

    AoN Active Member

    Messages:
    178
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #9
    Hmm when i run big dump, it give me this error :?

    Error at the line 4232: /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;

    Query: /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;

    MySQL: Variable 'sql_mode' can't be set to the value of 'NULL'
     
    AoN, Mar 15, 2008 IP
  10. DomainCo.US

    DomainCo.US Well-Known Member

    Messages:
    2,124
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    100
    #10
    yeah big dump is what i use also...

    it means your old_sql_mode;s value is null
     
    DomainCo.US, Mar 15, 2008 IP
  11. AoN

    AoN Active Member

    Messages:
    178
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #11
    i don't understand can u help me ?

    tell me full procedure ? pls
     
    AoN, Mar 15, 2008 IP
  12. renwickftw

    renwickftw Banned

    Messages:
    215
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #12
    splt the file to like 100mb parts depending on your connection

    end 1 part at ";" and after that there should be the statment "CREATE" or along those lines
     
    renwickftw, Mar 15, 2008 IP
  13. LittleJonSupportSite

    LittleJonSupportSite Peon

    Messages:
    386
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Do you have SSH access?

    SSH into your system then do:

    
    mysqldump -uuser -p db_name > backup-file.sql
    
    Code (markup):
    You can then FTP this file over to your new server.

    SSH into the other server and run"

    
    mysql -uusername -p db_name < backup-file.sql
    
    Code (markup):
     
    LittleJonSupportSite, Mar 15, 2008 IP
    mcfox likes this.
  14. perx

    perx Member

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #14
    nice tutorial
     
    perx, Mar 15, 2008 IP
  15. LittleJonSupportSite

    LittleJonSupportSite Peon

    Messages:
    386
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Why thank you sir.

    I actually have written way more advanced for backup purposes.

    Using --hex-blob and then tgz, scp over to remote location as backup etc.


    But as for the basics. It does not get more simple then what I posted =)
     
    LittleJonSupportSite, Mar 15, 2008 IP
  16. AoN

    AoN Active Member

    Messages:
    178
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #16
    i have no ssh access ? pls help me out how can i do with big dumb

    it give me this error :?

    Error at the line 4232: /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;

    Query: /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;

    MySQL: Variable 'sql_mode' can't be set to the value of 'NULL'
    __________________
     
    AoN, Mar 15, 2008 IP
  17. schoash

    schoash Active Member

    Messages:
    291
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #17
    schoash, Mar 15, 2008 IP
  18. LittleJonSupportSite

    LittleJonSupportSite Peon

    Messages:
    386
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #18
    @OLD_SQL_MODE is giving you a NULL value.

    Just write a simple PHP script to call the system commands that I gave you.

    Example:

    
    <?
    $jon = system("mysqldump -uuser -p db_name > backup-file.sql");
    ?>
    
    Code (markup):
     
    LittleJonSupportSite, Mar 15, 2008 IP
  19. IndianWebMaster

    IndianWebMaster Well-Known Member

    Messages:
    413
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    108
    #19
    Thanks, buddy!
    You have helped me solve one of my real old problems with that tip about bigdump :)
     
    IndianWebMaster, Mar 15, 2008 IP
  20. teamtgb

    teamtgb Banned

    Messages:
    400
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #20
    hey man, I also want to say thanks. This little tutorial helped me a lot. Thanks!!!
     
    teamtgb, Mar 15, 2008 IP