lukecav / search-and-replace

A simple search for find strings in your WordPress database and replace the string.

Home Page:https://wordpress.org/plugins/search-and-replace/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Search & Replace

Latest Stable Version Latest Unstable Version License Build Status

UNMAINTAINED

Note: This version of the plugin is not maintained anymore.

Description:

With Search & Replace you can search for everything and replace this with everything but before you do this you can easily create a simple database backup and restore it.

We have implemented special features!

The first one is "Replace a Domain / URL" that is useful for a quick and simple transfer or a migration of a WordPress site. The second feature is full support for serialized data. There are a lot more features - check them out! :-)

Our goal with this plugin is to give you a good solution for manipulating your data for both Developers and Users of WordPress.

Note: This plugin requires PHP 5.6 or higher to be activated.

Features

  • Search & replace data in your WordPress database
  • Change domain/URL of your WordPress installation
  • Handle serialized data
  • Choose dry run or download SQL file
  • Change table prefix
  • Backup & restore your database
  • WordPress Multisite support
  • localized and ready for your own language

Translations

Get a translation, your language from the WordPress repository and/or contribute your own language

Requirements:

PHP 5.6 + WordPress 4.x (might work with 3.x, but not tested yet)

Installation

  1. Unpack the download package.
  2. Upload the files to the /wp-content/plugins/ directory.
  3. Activate the plugin in WordPress backend.

Usage

Go to Tools -> Search & Replace to view the plugin's user interface.

screenshot-6

Backup Database tab

Urgent: Backup your database!

Please always backup your database before performing search/replace operations.

For avoiding problem please keep in mind that this plugin search and replace strictly what is specified in "Replace With".

Common error example:

Search For: http://web.com/wordpress/

Replace With: http://neuweb.com/wordpress

The url become something like: http://neuweb.com/wordpresscontent/...

Correct "Replace with":

Search For: http://web.com/wordpress/

Replace With: http://neuweb.com/wordpress/

The url become something like: http://neuweb.com/wordpress/content/...

Multisite usage:

If you are running a WordPress multisite and want to export the tables of all sites, run the plugin on the main site. Using the plugin on a subsite will only backup the tables of that subsite.

screenshot-4

Replace Domain/URL Tab

If you want to migrate your site to another domain, please enter here your new domain URL, then download a sql file with the replaced URLs. Import this file into the database of your WordPress installation on your new domain.

Please enter the new domain name including "http://" or "https://", as shown in the 'search' field.

If you want to replace the database-prefix, check the checkbox "replace database prefix" and enter your new prefix in the filed below. Don't forget to set the new prefix in the wp-config.php of your new installation!

Press Replace Domain URL button to download your SQL file for migration.

Multisite usage: If you are running multisite and want to migrate the tables of all sites, run the plugin on the main site. Using the plugin on a subsite will only migrate the tables of that subsite. The plugin will also replace the domain names (without http(s)://) in the wp_blogs table.

screenshot-2

Search and Replace Tab

Please backup your database before any search/replace!

Enter your search/replace values and select the tables you want to search. Click on "Do search/replace" to start the operation. By default, the checkbox "Dry run" is checked. In "dry run"- mode, you get a detailed preview of the changes. No changes will be written to the database. Please check always with "dry run" first. If you want to apply the changes, uncheck the "dry run"-button, choose if you want to download a sql dump with the changes, or write them into the database. Then click "do search/replace" again.

Multisite usage:

If you are running multisite and want to search the tables of all sites, run the plugin on the main site. Using the plugin on a subsite will only show the tables for that subsite.

screenshot-1

Import SQL tab

Import a SQL file or a gzipped SQL file into your database here. This may delete or change existing tables in your database. Please backup your database before doing this!

screenshot-3

License

Good news, this plugin is free for everyone! Since it's released under the GNU General Public License v2+ (or later), you can use it free of charge on your personal or commercial blog.

About

A simple search for find strings in your WordPress database and replace the string.

https://wordpress.org/plugins/search-and-replace/

License:GNU General Public License v2.0


Languages

Language:PHP 95.8%Language:JavaScript 2.6%Language:CSS 1.6%