Download the PHP package interconnectit/search-replace-db without Composer
On this page you can find all versions of the php package interconnectit/search-replace-db. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download interconnectit/search-replace-db
More information about interconnectit/search-replace-db
Files in interconnectit/search-replace-db
Package search-replace-db
Short Description A PHP search replace tool for quickly modifying a string throughout a database. Useful for changing the base URL when migrating a WordPress site from development to production.
License GPL-3.0
Homepage https://github.com/interconnectit/Search-Replace-DB
Rated 2.50 based on 4 reviews
Informations about the package search-replace-db
Search Replace DB - v4.1.3
This script was made to aid the process of migrating PHP and MySQL based websites. Works with most common CMSes.
If you find a problem let us know in the issues area and if you can improve the code then please fork the repository and send us a pull request :)
What's New
- Support for continuous integration through Travis CI
- Ability to do multiple search-replaces
- Ability to exclude tables
- Remove specific loaders for WP
- No longer automatically populate DB fields, this was causing security issues for users leaving the script on their site
- Script now checks whether the correct version of PHP is used
- Script checks if necessary modules are installed
- Script checks if the connection is secure and gives a warning otherwise
- Bug fixes
- UI Tweaks
- Password is not mandatory in CLI
- Ability to connect using SSL, command line only feature
Warnings & Limitations
We can't test every possible case, though we do our best. Backups and verifications are important.
You use this script at your own risk and we have no responsibility for any problems it may cause.
There are many edge cases and WordPress plugins that likes to mess your database, we don't have a silver bullet.
The license for this software is GPL v3, please bear this in mind if contributing or branching.
Do backups, also do backups and finally do backups!
Usage
- Do backups.
- Migrate all your website files.
- Upload the script folder to your web root or higher.
- Browse to the script folder URL in your web browser.
- Fill in the fields as needed.
- Choose the
Do a safe test run
button to do a dry run without searching/replacing.
Installation
To install the script, please place the files inside your sites public folder and head to yoursiteURL/Search-Replace-DB
CLI script
To invoke the script, navigate in your shell to the directory to where you installed Search Replace DB.
Type php srdb.cli.php
to run the program. Type php srdb.cli.php --help
for usage information:
Example cli commmands:
Troubleshooting
Nothing works after the search/replace operation!
It's time to use your backups!
I get a popup saying there was an AJAX error
This happens occasionally and could be for a couple of reasons:
-
When the script starts, it attempts to start your WordPress or Drupal installation to auto-detect your username and password settings. If this fails, you will see a message informing you that auto-detection failed. You will have to enter your details manually.
- Script was unable to set the timeout so PHP closed the connection before the table could be processed, this can happen on some server configurations.
Contributing
You can view the source code and submit a pull request using GitHub, the project's page is located at:
https://github.com/interconnectit/Search-Replace-DB/
We appreciate a small unittest among the code, please explain what you are is trying to solve.
License
This file is part of Search-Replace-DB.
Search-Replace-DB is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
Search-Replace-DB is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Search-Replace-DB. If not, see https://www.gnu.org/licenses/.
All versions of search-replace-db with dependencies
ext-mysqli Version *
ext-mbstring Version *
ext-pdo Version *
ext-json Version *