Quick Tip: How to Move a WordPress Site

Note: This article was published while I was in my early 20s. I was much younger and dumber. Please don't hold it against me. One of the perils of having a 20+ year old website!

I won’t go too in-depth here, but I will describe the steps you need to take to move a WordPress website to a different host.

  1. Download all of the site files from the old host
  2. Export the entire database WordPress is using. If you’re not sure how to do that, there are instructions here.
  3. If there are existing files on the new host, back them up by downloading them. Do the same for any databases on the new host.
  4. Upload the site files from the old host to the new one.
  5. Create a new database on the new host. Each host is different, but you’ll have to create a database, a database user, and then give the database user all privileges on the new database.
  6. Import the database from the old host to the new database.
  7. Change the wp-config.php file info to the new database name, host, username, and password.

Some Things to Consider:

  • Most hosts keep the database host as localhost but not all of them. If you’re not sure what your host is, you should contact the new host’s support.
  • This is just moving WordPress to a new sever; I assume you’ve already pointed the domain. If you’re changing domains, you will also have to change all of the domain references in the WordPress database, most notably in the wp_options table (there are two references there). If you don’t change the wp_options table, your site will not work. The best way to change all of the references (most of which being in the posts table) is probably to do a Find/Replace on the .sql file in your favorite text editor after you complete step 2.
  • If you’re moving a WordPress MU/Multisite install, you will also have to configure the sever to handle subdomains. The codex has instructions on how to do that here.

Similar Posts

  • |

    A Year of Responsive Design with WordPress

    A little over a year ago, my second book (and the first one to actually be in book stores) came out. It’s called Responsive Design with WordPress and it’s all about how to leverage WordPress to create responsive themes. It’s been an incredible year and I wanted to talk about two things: what has happened since the book’s release,…

  • |

    Now Hosted by Liquid Web!

    The Hosting field is an ever-changing landscape that requires constant evaluation to make sure you’re getting the best bang for your buck…OK maybe that’s not necessarily true for most folks, but while transferring sites is a bit of a pain in the neck, I still like to make sure I have tried my fair share…

  • | |

    What I Learned in College

    Note: This article was published while I was in my early 20s. I was much younger and dumber. Please don’t hold it against me. One of the perils of having a 20+ year old website! Over at Nettuts, they’ve posted an article titled, “Should You Attend University for Web Development”. Reading the article, I found…

  • How Do I Learn Web Development?

    A couple of years ago, I was on the How to Hold a Pencil podcast (episode here) and we discussed a number of things, including the steps I took to learn web development (over 14 years ago…whoa). I’m often asked, as I was on the show, what I recommend for people starting today. Here’s my…

  • |

    My Interview at FreelanceFuse

    Note: This article was published while I was in my early 20s. I was much younger and dumber. Please don’t hold it against me. One of the perils of having a 20+ year old website!Sam McArdle over at FreelanceFuse was nice enough to interview me about being a freelancer- primarily how I started the business…

  • |

    Make wp-caption the same (responsive) width as the Image

    I was working on a problem last week in WordPress where the caption for an image was extending the whole width of the container, not staying the width of the image. This make sense – the image is inside the .wp-caption container. So how to we fix it? Let me tell you!

One Comment

  1. To move a database to an other host, will not be very easy. As I am concerned, I looking for a good host who can create a databas for me to manage my visitors and clients.

    Is there anybody who can help me?
    sincerely
    Elemer

Comments are closed.