Unlimited Plugins, WordPress themes, videos & courses! Unlimited asset downloads! From $16.50/m
by
Lessons:10Length:51 minutes

Next lesson playing in 5 seconds

Cancel

Free Preview: The Complete Guide to Migrating WordPress

Introduction

00:40
  • Overview
  • Transcript

When you've finished developing a WordPress site on your local computer, you'll need to migrate it to its live server. This can be a frustrating experience for many developers—there's a lot that can go wrong along the way, and if you're not careful, you can even lose data or break another site on the server.

In this course, you'll learn all about how to migrate a WordPress site from development to live. You'll see how to migrate a site from your local computer to a remote server, from one remote server to another, and into and out of a Multisite network.

Do you want to learn WordPress development from start to finish? Check out our learning guide: Learn WordPress Development.

1.Introduction
1 lesson, 00:40

Free Lesson
1.1
Introduction
00:40

2.Migrating From Development to Live
3 lessons, 15:56

Free Lesson
2.1
FTP Access and PHPMyAdmin
05:12

2.2
Export and Edit the Database
04:22

2.3
Import the Database and Upload Files
06:22

3.Migrating From One Remote Server to Another
1 lesson, 07:14

3.1
Migrating From One Remote Server to Another
07:14

4.Migrating a Site Into a Multisite Network
3 lessons, 17:51

4.1
Overview of Multisite Migration
05:44

4.2
Export and Edit the Database and Download Files
05:54

4.3
Import the Database, Upload Files, and Migrate Users
06:13

5.Migrating a Site Out of a Multisite Network
1 lesson, 06:26

5.1
Exporting and Editing the Database
06:26

6.Conclusion
1 lesson, 02:39

6.1
Conclusion
02:39


1. Introduction

1.1 Introduction

Hello, and welcome to this Tuts+ course on migrating WordPress. My name's Rachel McCollin, and in this course I'll show you how to use tools such as phpMyAdmin and FTP to migrate WordPress between a variety of locations. So we'll start with a local site, a development site. And I'll show you how to migrate that to a remote site. I'll then show you how to migrate between one remote location and another. And then we'll move on to looking at WordPress Multisite. So we'll migrate our site into a WordPress network, and then I'll show you how to migrate a site out of a WordPress network. Watch this course and find out how to migrate WordPress.

2. Migrating From Development to Live

2.1 FTP Access and PHPMyAdmin

Hello and welcome back to this Tuts+ course on Migrating WordPress. In this part of the course, we're going to get started with migrating WordPress from a development site to a live site. And for a lot of people, this is the first time they migrate a WordPress site. So let's say, you set yourself up a local WordPress installation and you've created a test site and now you want to migrate it to your remote server. In other words, to the place on the Internet that your hosting provider has given you to store your site. So in this part of the course, I'm gonna help you get started with that process and introduce you to some of the tools that you'll need to use. So here's the local site that I'm going to be migrating. And this is a site I've set up for this tutorial that's on my local machine, and I'm using MAMP to run it. So I'm assuming that you've already got a local site and that you've used MAMP, or possibly a similar tool. But in my experience, most people use MAMP to install WordPress and run their site locally. And if you've got a tool like MAMP installed, you'll be able to use localhost on your computer and access all of the sites that you've installed there. You can see I got quite a few, but the one I'm working with is this one called tutsplus. So I've also got a set up on my remote server. And what I tend to do when I'm migrating WordPress is I keep all of the tabs related to the site I am starting with in a different window from all of the screens relating to the site I'm moving to. Because otherwise, I might end up doing something wrong. Maybe exporting the database from the site where I need to be importing a database, or something like that. So these are my tabs relating to the local site. And if I switch windows, I've got my tabs relating to the remote site. And there's not much there yet, because I haven't got set up with my remote site. But here's my cPanel for my hosting provider. Now, the first thing I need to do is install WordPress, and you can do that in one of two ways. You can either use an auto installer that's provided by your hosting provider or you can download it from the WordPress website. I've accidentally gone to wordpress.com there. Or you can access it from the WordPress website. So I'm going to quickly install WordPress on the remote server by using the five-minute install. So I've now got a new WordPress site, and this is stored on my remote server. So you can see it's in a subdirectory of my own site, compasshosting.co.uk. But in your case, it would be up here, wordpressmigration.co.uk or .com, or whatever it is you're using as your domain name. And this is the frontend of the site at the moment, and it's not got much content. Don't worry about that, because we will be overriding any themes or plugins, or any content in this site with what we'll be migrating across from the local site. So it really doesn't matter what WordPress has installed for you, because we'll be overriding that. So here in my cPanel, I've still got access to it. And I will need to be using, this is, again, for my remote site, I'll need to be using a tool called phpMyAdmin, and that gives you access to the database of your site. So you can see here, I've got a number of databases. This is the one I want to be working with. So this gives me access to my database. And this is the database for the remote site that I've just installed. And you can see here, there are the standard database tables created by WordPress when you install it. During the process of migrating the site from development to live, we'll actually delete all these tables and replace them with new ones from the development site. So everything will be cleaned out from this new site that we've installed and replaced with what's in the local site. So there are three parts to migrating WordPress. The first one is installing WordPress, which I've just done. The second is migrating the database, which we'll do during this course. And the third is migrating the files. So you'll need to migrate the contents of the WP content directory. Now let me show you that in Coda. So here are my two sites side by side in my code editing software, Coda. Now, you could use a tool like Coda to do this, because Coda gives you FTP access to your sites. Or alternatively, you could use a program that just gives you FTP access, such as FileZilla. And you can find FileZilla here. And this will give you software that you can use to upload files via FTP to your remote server. And again, I'll include some links in the notes for this course. So I'm gonna be using Coda, because that's the interface that I'm familiar with. But if you're not using a code editor that includes FTP access, FileZilla is free and it's a great tool for doing that. So those are the tools that you'll need to use to migrate from your local site to your remote site. In the next part of the course, we'll start migrating the site. So we'll export the database from the local site and we'll edit it so that it will work in the remote site. See you next time, and thanks for watching.