MySQL Heavy Uploads

Discussion in 'MySQL' started by smrutik, May 7, 2009.

  1. #1
    Hi All,

    Does anybody know how to upload heavy data (sql queries) to MySql database.
    Heavy like more than 100mb?

    PhpMyAdmin allows some particular amount like 30mb or so.

    What is any good solution?

    Pls help.

    Thanks,
    Smruti.
     
    smrutik, May 7, 2009 IP
  2. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #2
    If you have ssh access, you can do it from the command line.

    Programs like navicat (http://www.navicat.com/) can normally do it as well. Generally with phpmyadmin, your limiting factor is php's parameters and not the database. You have to bypass php to get around the limitations.
     
    jestep, May 7, 2009 IP
  3. Progg

    Progg Peon

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    The best tool by far that I've used is called BigDump. Google it and it's the first link. It staggers to the imports into small chunks to achieve faster speeds. Give it a shot and you should be pleasantly surprised
     
    Progg, May 7, 2009 IP
  4. mwasif

    mwasif Active Member

    Messages:
    816
    Likes Received:
    23
    Best Answers:
    1
    Trophy Points:
    70
    #4
    Ask your host to do this for you.
     
    mwasif, May 7, 2009 IP
  5. Progg

    Progg Peon

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Also a great idea. Any good host will do this for you given that you place the DB in the root directory as a .sql or .tar.gz

    I've done it many times with HostGator. No issues
     
    Progg, May 7, 2009 IP
  6. Adcuz

    Adcuz Peon

    Messages:
    22
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Compress the data into a gzip - this will shrink it for uploading, then unzip it on the server and then SSH into your server using the mysqladmin commands for importing. Google "ssh mysql import".

    Good luck ;)
     
    Adcuz, May 7, 2009 IP
  7. Ignacio21

    Ignacio21 Guest

    Messages:
    61
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Hello,

    ¿Do you have SSH access?

    You can do an upload of a big database in seconds, using putty.

    Download putty here: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

    Install putty. Login with the IP of your host, your root user and password.

    Upload the database you want to import in a sql file to your server using an ftp client like smartftp, cuteftp... etc

    Once in the command window, type this, copy and paste:

    mysql -u yourmysqlusername -p mysqldatabasename < /path/to/your/file.sql

    replace yourmysqlusername with the username for MySQL

    replace mysqldatabasename with the actual name of the database

    replace /path/to/your/file.sql with the location and name of the database you have uploaded in a sql file to your server using ftp and the one which will be imported to the actual database

    Tell me if you need more help. :)
     
    Ignacio21, May 7, 2009 IP
    micksss likes this.
  8. smrutik

    smrutik Guest

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Hi,

    thanks a lot to all for ur replies.

    BigDump - I get error like
    "dont have line break after query end" .. i tried doing so, but i guess
    it takes only 300 lines in a single query and i have much more.

    Putty - i dont have SSH access.

    Any other good solution buddys?

    thanks.
     
    smrutik, May 8, 2009 IP
  9. Anto1982

    Anto1982 Peon

    Messages:
    128
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Split it in several small parts...
     
    Anto1982, May 8, 2009 IP
  10. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #10
    Try navicat. They offer a free trial. I've used it on 10Gb+ database restores.
     
    jestep, May 8, 2009 IP
  11. seokingdom07

    seokingdom07 Banned

    Messages:
    132
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #11
    there are lot of options available, u can use mysql front
     
    seokingdom07, May 17, 2009 IP
  12. mwasif

    mwasif Active Member

    Messages:
    816
    Likes Received:
    23
    Best Answers:
    1
    Trophy Points:
    70
    #12
    mwasif, May 25, 2009 IP