Skip to content


Subversion checkout URL

You can clone with
Download ZIP
WordPress plugin that exports your database, does a find and replace on URLs and file paths, then allows you to save it to your computer.
PHP JavaScript
branch: master


=== WP Migrate DB ===
Contributors: bradt
Donate link:
Tags: database, migrate, backup, mysql
Requires at least: 3.0
Tested up to: 4.0
Stable tag: 0.6.1
License: GPLv2

Exports your database, does a find and replace on URLs and file paths, then allows you to save it to your computer.

== Description ==

WP Migrate DB exports your database as a MySQL data dump (much like phpMyAdmin), does a find and replace on URLs and file paths, then allows you to save it to your computer. It is perfect for developers who need to update their local install with fresh data from the production site, or copy their locally developed site to a staging or production server.

It even takes into account serialized data (both arrays and objects) and updates the string length values.

Example: <code>s:5:"hello"</code> becomes <code>s:11:"hello world"</code>

**PRO Version with Email Support and More Features**

* Select the tables you want to migrate
* Pull production db down and replace local db
* Push local db up and replace production/staging db
* Multisite support
* Video walkthroughs and howtos
* Media files migration
* Fire migrations from the command line or via a function call
* More frequent bug fixes and improvements
* And more features on the way!

See the video below or [visit the web site]( to learn more about the pro version.

== Installation ==

1. Use WordPress' built-in installer
2. Access the "Migrate DB" menu option under Tools (or under Settings on multsite intallations)

== Frequently Asked Questions ==

= Does this plugin support multisite? =

Yes, in a limited capacity. The Developer license of the [pro version]( fully supports multisite.

= Does the plugin migrate files as well? =

No, it only operates on the database.

= Why do I end up with a wp-login.php download instead of the exported SQL file? =

It is likely you have a download manager plugin or extension installed in your web browser. You will need to disable it for the SQL download to work properly.

== Screenshots ==

1. Main screen
2. Settings tab
3. Saving the exported database

== Changelog ==

= 0.6.1 - 2014-10-29 =
* New: breadcrumb-style UI for saved profiles
* New: Brazilian Portugese translation
* Security: Added .htaccess to backup folder to help prevent direct downloads
* Security: False values not included in signature
* Improvement: Compatibility with TGM Plugin Activation
* Improvement: Fixed hundreds of PHP Code Sniffer warnings
* Improvement: Switch to `update_site_option()` and `get_site_option()`
* Improvement: Cleaner and more instructive error message on JSON decoding failure
* Improvement: New hooks to massage data before and after find & replace
* Improvement: Common server security rules better accommodated
* Improvement: Better compatibility with SSL on WP Engine
* Improvement: Minify all the Javascripts
* Improvement: Use PHP's DIRECTORY_SEPARATOR instead of our own constant
* Improvement: Updated tons of translation strings to be translator-friendly
* Improvement: Find &amp; replace field error messages could suggest removing the fields
* Improvement: Download button for Diagnostic Info &amp; Error Log
* Bug fix: 404 errors after successful migrations due to caching
* Bug fix: Multisite exports broken on PHP < 5.4.7
* Bug fix: Using relative paths for file includes
* Bug fix: Typing new profile name does not select "Create new profile" option
* Bug fix: Find &amp; replace field errors stick around even after removing fields
* Bug fix: `wpmdb_error_log` option is auto loading
* Bug fix: Inconsistent stripping of slashes
* Bug fix: Spinner is inconsistent with WP 3.8+ spinner
* Bug fix: Apostrophe in path not being handled
* Bug fix: Inappropriate use of `htmlentities()`
* Bug fix: The table tooltip still shows during the media files migration
* Bug fix: Import/Export issues between MySQL 5.1 and 5.5+
* Bug fix: Notice error on Updates dashboard page
* Bug fix: Signature verification error when local and remote plugins are different versions
* Bug fix: Find &amp; replace handle icon is rendering poorly
* Bug fix: PHP Notice: Undefined variable: safe_mode
* Bug fix: Fatal error: Cannot use object of type WP_Error as array in `verify_download()`

= 0.6 - 2014-08-19 =
* New: Updated the migration UI to include a detailed progress bar, time elapsed, pause and cancel buttons and more!
* New: Option to exclude transients (temporary cached data)
* New: Migration profiles
* New: Setting to configure the maximum request size (how much data is exported in a given HTTP request)
* Improvement: Unlimited find & replace fields with drag & drop reordering

= 0.5 - 2013-07-26 =
* Language support! Thanks to an awesome [pull request]( from [Rafael Funchal](
* New Language: Brazilian Portugese
* [Added filter for the filename of the exported file](
* Bug fix: [Spam commentmeta included when "Do not export spam comments" checked](
* Bug fix: [Fatal error method `error` does not exist](
* Bug fix: [Table names with dashes not exporting](
* Bug fix: [Find & replace is case-sensitive but shouldn't](

= 0.4.4 - 2013-05-19 =
* [Pro version has arrived!]( Added some info to the sidebar.
* Updated required version to WordPress 3.0+
* Bug fix: [Does not handle serialized objects](
* Bug fix: [Admin menu disappears when DISALLOW_FILE_MODS is true](
* Bug fix: [Duplicate records on export](
* Bug fix: Updated spinner image for HiDPI displays

= 0.4.3 - 2012-12-18 =
* Fixed deprecated error notices when debug mode is on
* Bug fix: [Exports views as tables](
* Compatibility tested with WordPress 3.5

= 0.4.2 - 2012-09-13 =
* Moved screenshots to /assets folder and updated them to support retina
* Added sidebar including author profile and survey to gauge interest for a pro version

= 0.4.1 - 2012-08-15 =
* Removed WP App Store installer - not allowed in repo

= 0.4 - 2012-08-07 =
* New: More than 4x faster than version 0.3 due to find & replace improvements
* New: Option to turn off replacing GUIDs
* New: Option to exclude spam comments and post revisions from the export
* New: Option to save file with gzip compression
* New: Added date and time to file names
* New: Display path to SQL file on the server
* New: WP App Store installer integration
* Bug fix: Notices and warnings displayed when WP_DEBUG is on

= 0.3 - 2011-12-16 =
* Bug fix: [Null formatting error](
* Bug fix: [Deprecated capability](
* Bug fix: Serialized string lengths incorrect when string contains double quotes

= 0.2.2 - 2011-09-23 =
* Bug fix: [Breaks Export](

= 0.2.1 - 2009-12-13 =
* Moved to hosting

= 0.2 - 2009-04-03 =
* Moved menu link from "Settings" to "Tools"
* The random string of characters no longer appears in the filename on save.

= 0.1 - 2009-03-20 =
* First release

== Upgrade Notice ==

= 0.4 =
Runs export over 4x faster and adds some nice new features often requested. Upgrade recommended.

= 0.2.2 =
This version fixes a bug that breaks the WordPress core export feature. It is highly recommended that everyone upgrade.
Something went wrong with that request. Please try again.