Moving 5GB MySQL data base from one server to another

Discussion in 'MySQL' started by usf, Nov 4, 2010.

  1. #1
    Hello Sir, I am wanted to move 5 GB MySQL data base from one dedicated server to another dedicated server. I did not know the process how to backup and to transfer from one server to another. Please tell me the way how can I make this possible.

    Thanks
     
    usf, Nov 4, 2010 IP
  2. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #2
    Do you have physical access to the servers, or are these with the same hosting company? This is such a large amount of data that transferring from server to server over the internet gets really painful. Best bet is to hook up an external hard drive and transfer it that way, or have your host transfer it over the LAN if it's possible.
     
    jestep, Nov 5, 2010 IP
  3. usf

    usf Active Member

    Messages:
    53
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #3
    Sir they are on different companies. I am currently on rapid vps and i buy the new dedicated linux server on the planet.
     
    usf, Nov 5, 2010 IP
  4. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #4
    kmap, Nov 5, 2010 IP
  5. Layoutzzz

    Layoutzzz Greenhorn

    Messages:
    78
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    18
    #5
    Do you have ssh access to both servers ?
     
    Layoutzzz, Nov 6, 2010 IP
  6. mwasif

    mwasif Active Member

    Messages:
    816
    Likes Received:
    23
    Best Answers:
    1
    Trophy Points:
    70
    #6
    Use mysqldump to backup your database and shell command scp to transfer data from your old server to new one. I hope you won't run out of bandwidth while transferring 5GB data.
     
    mwasif, Nov 6, 2010 IP
  7. mwasif

    mwasif Active Member

    Messages:
    816
    Likes Received:
    23
    Best Answers:
    1
    Trophy Points:
    70
    #7
    I can do it for you.
     
    mwasif, Nov 6, 2010 IP
  8. mikro99

    mikro99 Peon

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    use ftp,
    but backup it first.

    Maybe you can make backup file in zip.
     
    mikro99, Nov 6, 2010 IP
  9. olddocks

    olddocks Notable Member

    Messages:
    3,275
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    215
    #9
    olddocks, Nov 8, 2010 IP
  10. sibsoft

    sibsoft Well-Known Member

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    128
    Digital Goods:
    1
    #10
    Of course easiest way is to make database dump (mysqldump) and then ftp (scp will be slower than ftp) it to another server. It's also good to get dump compressed (gzip or bzip).

    But you also can copy DB files (usually located in /var/lib/mysql/) to a new server. But: 1. you should have the same mysql versions on both servers. 2. you will have to create empty DB first, then copy files.
     
    sibsoft, Nov 9, 2010 IP
  11. superfrankie

    superfrankie Well-Known Member

    Messages:
    1,166
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    180
    #11
    At Thread Starter

    Whenever you move to new Dedicated Server, Companies usually offer free Data Migration from one host to another, You need not to worry. Ask them to move it for you.
     
    superfrankie, Nov 9, 2010 IP