Moving Databases to New Server

Discussion in 'MySQL' started by ScottHughes, Jun 5, 2007.

  1. #1
    I am moving to an new web host. I can FTP the files and folders easy enough, but I'm not sure on the best way to do the databases. I have multiple websites, including a few wordpress blogs and some phpBB forums.

    I want to have the least downtime, but I don't want to lose any posts or comments from users in my blogs or forums.

    What's the best way to move my databases to a new host?
     
    ScottHughes, Jun 5, 2007 IP
  2. KalvinB

    KalvinB Peon

    Messages:
    2,787
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    0
    #2
    export the database using PHPMyAdmin and then import it on the new host using PHPMyAdmin. If your host doesn't supply those tools for you, you should be able to install it without much trouble.
     
    KalvinB, Jun 5, 2007 IP
  3. sri

    sri Active Member

    Messages:
    917
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    70
    #3
    adding to what KalvinB said, keep in mind the DB hostname might change (it's not always 'localhost') and so do other DB connection parameters. In that case you might have to update your config php files.
     
    sri, Jun 5, 2007 IP
  4. ScottHughes

    ScottHughes Peon

    Messages:
    755
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    0
    #4
    That's what I thought. I guess there will be downtime while the domain propagates.

    Anyway, now I have a new and worse problem. I think there's some kind of compatibility issue.
     
    ScottHughes, Jun 5, 2007 IP
  5. fabriciogr

    fabriciogr Active Member

    Messages:
    958
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    73
    #5
    are you pretty good with ssh ? do you know how to access your account/server via cli?

    if so doing the export >> import would be so much better and could probably sort out most of the compatibility issues..

    anyhow if now... you can almost sort compatibilty issues using phpMyAdmin.. in the export page there should be a dropdown with some text before it mentioning compatibity/versioning? if you open the dropdown you'll see a few mysql versions... pick the right one and you should have less of a headache during your import.
     
    fabriciogr, Jun 5, 2007 IP
  6. everypcneed

    everypcneed Peon

    Messages:
    238
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I can address this issue for you for a small fee. $15 CDN. PM me if interested.
     
    everypcneed, Jun 7, 2007 IP