Moving MySQL Database

Discussion in 'MySQL' started by hunter22375, Jul 2, 2008.

  1. #1
    I am considering changing hosting providers and I have a vBulletin forum database I will need to move. I don't want to lose anything so can someone exaplin how this is done? Thanks in advance.
     
    hunter22375, Jul 2, 2008 IP
  2. zak

    zak Peon

    Messages:
    175
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #2
    zak, Jul 2, 2008 IP
  3. zak

    zak Peon

    Messages:
    175
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #3
    if its a MySQL database that is
     
    zak, Jul 2, 2008 IP
  4. hunter22375

    hunter22375 Well-Known Member

    Messages:
    162
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #4
    Thanks...if I have the database backed up on my computer...can I use the source command on the new server to upload it from there....and if so, will it be just like it is now?
     
    hunter22375, Jul 2, 2008 IP
  5. Nick_Mayhem

    Nick_Mayhem Notable Member

    Messages:
    3,486
    Likes Received:
    338
    Best Answers:
    0
    Trophy Points:
    290
    #5
    You need to open your existing database in phpMyAdmin. Export it and save it on your PC

    And then import it on new server with Import function in phpMyAdmin.

    Thanks.
     
    Nick_Mayhem, Jul 2, 2008 IP
  6. zak

    zak Peon

    Messages:
    175
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I think there is an upload limit when using phpmyadmin
    Its about 5mb i think.
    So if your database is larger than 5mb then you need to upload the .sql file to the new server and use the source command otherwise you can use phpmyadmin to upload it.
     
    zak, Jul 2, 2008 IP
  7. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #7
    If you are on cPanel server then you can easily generate the full backup of your site and you can provide it to your new host to restore it. Also you can restore the database from PHPMyAdmin but if your database size is larger create backup copy for few tables instead of entire database in one file.
     
    kailash, Jul 4, 2008 IP
  8. zak

    zak Peon

    Messages:
    175
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Export using phpmyadmin shouldnt be a problem... I exported an 80mb database .gzip format. The .gzip was only 5mb. When importing you will need to ungzip...
     
    zak, Jul 5, 2008 IP