large SQL transfer

Discussion in 'MySQL' started by Marty_, Jul 14, 2007.

  1. #1
    I need to transfer a large 2.3gig database table to a new host ( hostgator ) what options are a available, I know copy&paste would work but that would probable take me a week :D, so I'm looking for advice on how I could accomplish this task. ?

    Regards
    Marty
     
    Marty_, Jul 14, 2007 IP
  2. norfstar

    norfstar Peon

    Messages:
    1,154
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I don't think the phpMyAdmin tool at most hosts will allow importing of a database that size, so instead you could try a script that automatically does say 1000 lines at a time, sleeps for ten seconds, then does the next 1000 lines - it might take a while to run but it will avoid you having to manually do the copying as pasting.
     
    norfstar, Jul 14, 2007 IP
  3. phpvermin

    phpvermin Guest

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    you can download your table to your computer. (Export by phpmyadmin or cpanel...) Then you can compress it to these formats : gz,tar,zip
    and upload by ftp to your host. Then you can import by command line.
    But you need shell access.

    (after successful shell login)

    You can try this:

    $ mysql -u username -p -h hostname databasename < data.zip


    if not work you can try:
    $ mysql -u username -p -h hostname databasename < data.sql
     
    phpvermin, Jul 14, 2007 IP
  4. Clark Kent

    Clark Kent Guest

    Messages:
    122
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You may use mysqldumper (mysqldumper.de). Works fine with big databases.
     
    Clark Kent, Jul 14, 2007 IP
  5. Marty_

    Marty_ Banned

    Messages:
    1,031
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks for the replies...

    I figured out how I could do this, my site's internal admin panel allows database backups from text files, so I'm currently downloading the table as a cvs file, and I'll upload that and see how it goes...
     
    Marty_, Jul 14, 2007 IP
  6. Agent_Dweeb

    Agent_Dweeb Peon

    Messages:
    5,607
    Likes Received:
    384
    Best Answers:
    0
    Trophy Points:
    0
    #6
    How do you get these massive databases?
     
    Agent_Dweeb, Jul 14, 2007 IP
  7. Marty_

    Marty_ Banned

    Messages:
    1,031
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Its a web directory with just under 5 million links...:D
     
    Marty_, Jul 14, 2007 IP