Pitta Migration

plugin banner

Migrate WordPress databases using WP_HOME and WP_SITEURL constants.

Author:Ian Channing @ VSN International (profile at wordpress.org)
WordPress version required:2.2
WordPress version tested:4.3
Plugin version:0.4.2
Added to WordPress repository:26-07-2015
Last updated:24-08-2015
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:100
Rated by:1
Plugin URI:https://www.vsni.co.uk
Total downloads:1 264
Active installs:10+
plugin download
Click to start download

This plugin is aimed at developers that need to migrate their databases from production to test or local domains.

This is the simplest way I've found to migrate databases quickly.

You only have to set the WP_HOME (WordPress address URL) and WP_SITEURL (Blog address URL) constants once for each environment and then the database is automatically upgraded when you import a database and login to the admin area.

This stands on the shoulders of the constants and fills the hole for when plugins don't follow the rules and use the database directly.

This plugin is designed to be the most lightweight way to migrate your database and stay out the way of your own processes.

It works with WordPress to use WordPress' own constants to update the database using the WordPress Database Object. It avoids search and replaces in text files. It uses database queries to update the database as should be done.

Most developers have their own methods for exporting/importing the database - if you can use mysqldump then you probably don't want a WordPress plugin to do it for you.

It makes no assumptions about your database and it's cross platform.

P.S. Pitta is taken from the start of an answer from WordPress SE:

Deployment of a WordPress site from one box to another has been a PITA since day one I started working with WordPress. (Truth-be-told it was a PITA with Drupal for 2 years before I started with WordPress so the problem is certainly not exclusively with WordPress.)

So this plugin aims to make things less PITA and more yummy Pitta (pedants will mention that Pitta can also be spelled pita).

Its inspiration actually comes from the second answer from the same WordPress SE question.

Coincidentally there is a migratory bird called a Pitta:

The fairy pitta migrates from Korea, Japan, Taiwan and coastal China to Borneo.

P.P.S. This plugin is based off the excellent WordPress Plugin Boilerplate from antichris on Github


Screenshots
FAQ
ChangeLog