Join Morten Rand-Hendriksen for an in-depth discussion in this video WordPress migration in three steps, part of Migrating WordPress with WP Migrate DB and DB Pro.
- To get started, let me briefly explain what WordPress migration is and walk you through the three steps of migration. WordPress is a content management system, an application that lives on a web server and interfaces with a database. Whenever you put content into WordPress or change any of the settings in WordPress, you're really making changes to that database. That means you can remove WordPress from the web server and replace it with a new version and everything will behave and appear the exact same way it did before. The content and the application are entirely separate.
The content published with WordPress is formatted and designed using themes. To change the appearance of WordPress content, you change the theme that's running on that WordPress Site. You can also extend the functionality of WordPress by adding plugins. and whenever you add extra content to a WordPress site, say images or documents or anything else you want to share with the world, you do that through uploads. So essentially, while WordPress, the application is replaceable, the themes, plugins, uploads, and database are not.
This is where all the important stuff that makes a site unique is sitting. When we talk about WordPress migration, what we mean is taking an origin site, that can be a site that you built on your own computer or a site built somewhere on the web and moving all of it's contents and it's settings to a new location, either on the web or on another computer. WordPress itself, the application, can be downloaded and installed fresh in the new location. The migration focuses on moving all important things that can change in a site.
That is the themes, plugins, the uploads, and the database over from the origin site to the target site. With files, it's relatively easy. You simply take the themes, plugins, and uploads and copy them over to the new location using either FTP or some other tool. The database is a different story, because the origin site and the target site will have different URLs and a different drive and folder structure, any URLs in the database must be rewritten to match the target site before the migration can take place.
This is where plugins like WP migrate DB come in. It helps the process along by taking the responsibility of fixing the database away from you and leaving it to the computer to do all the work. Which brings me to the three steps of migration. When you want to migrate a WordPress site, here are the three things you always have to do. First, you have to setup a target site. This is where the WordPress site is going to end up in the end. You have to make sure that the target site actually works, that there's a database in place, and that WordPress is setup and running.
Second, you need to migrate all the files, your themes, your plugins, your uploads, and anything else that pertains to your site. You can do so manually using FTP and for the media files, you can also have WP migrate DB Pro do it for you with the media files add on. Finally, third, migrate the database. This is where WP migrate DB and later in the course WP migrate DB Pro really shines. And that's all there is to it. When migrating a WordPress site, you just have to make sure you check off each box as you move along the process and everything should work out fine.
- Moving files via FTP
- Installing WP Migrate DB on both sites
- Exporting and importing the database
- Using the WP Migrate DB Pro
- Understanding push and pull
- Moving files with the Media Files add-on
- Troubleshooting common WordPress migration problems