# interconnectit/search-replace-db

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/interconnectit-search-replace-db).**

4,102 stars · 851 forks · PHP · GPL-3.0

## Links

- GitHub: https://github.com/interconnectit/Search-Replace-DB
- Homepage: https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
- awesome-repositories: https://awesome-repositories.com/repository/interconnectit-search-replace-db.md

## Description

Search-Replace-DB is a MySQL search and replace tool designed for updating database strings and migrating PHP-based websites and content management systems. It functions as a database migration utility to update references and table engines when moving sites to new servers or domains.

The project specifically handles the updating of text inside serialized PHP arrays and objects, recalculating lengths to maintain data structure integrity and prevent corruption. It also includes a converter for modifying storage engines and character collations across multiple MySQL tables.

Additional capabilities include regular-expression pattern matching, dry-run simulations to preview pending modifications, and the ability to limit operations to specific tables or columns. The tool also supports encrypted database connections using SSL certificates.

## Tags

### Data & Databases

- [PHP Serialized Data Processing](https://awesome-repositories.com/f/data-databases/data-processing-pipelines/data-serialization/php-serialized-data-processing.md) — Parses and updates PHP serialized strings by recalculating lengths to prevent data corruption during text replacement.
- [Serialized Data Integrity Preservation](https://awesome-repositories.com/f/data-databases/data-processing-pipelines/data-serialization/serialized-data-integrity-preservation.md) — Replaces text within database strings while maintaining the integrity of serialized PHP data structures.
- [Serialized String Updaters](https://awesome-repositories.com/f/data-databases/data-processing-pipelines/data-serialization/serialized-string-updaters.md) — Updates text inside serialized arrays and objects without corrupting the data structure.
- [MySQL Domain Migrations](https://awesome-repositories.com/f/data-databases/mysql-domain-migrations.md) — Facilitates moving a website to a new server or domain by updating database references and table settings.
- [Database Content Find-and-Replace Tools](https://awesome-repositories.com/f/data-databases/text-pattern-matching/text-search-and-replace/database-content-find-and-replace-tools.md) — Provides a script for finding and replacing strings within MySQL databases while preserving serialized PHP data integrity.
- [Database Search and Replace Operations](https://awesome-repositories.com/f/data-databases/text-pattern-matching/text-search-and-replace/database-search-and-replace-operations.md) — Provides utilities to search for specific text or regular expressions and replace them directly within database content. ([source](https://cdn.jsdelivr.net/gh/interconnectit/search-replace-db@master/README.md))
- [Table and Column Whitelists](https://awesome-repositories.com/f/data-databases/cardinality-estimation/cardinality-limiters/query-scope-limiters/table-and-column-whitelists.md) — Allows limiting search and replace operations to specific tables or columns to reduce execution risk.
- [Table Performance Optimizers](https://awesome-repositories.com/f/data-databases/data-management/table-data-managers/table-lifecycle-automators/table-performance-optimizers.md) — Improves performance and data sorting by changing storage engines and character collations across MySQL tables.
- [Schema Modification](https://awesome-repositories.com/f/data-databases/database-management-systems/database-systems-management/database-management/schema-designers/table-schemas/schema-modification.md) — Executes SQL alter statements to modify table storage engines and character collations for database optimization.
- [Database Modification Previews](https://awesome-repositories.com/f/data-databases/database-modification-previews.md) — Calculates and displays the total number of pending modifications before they are applied to the live database. ([source](https://cdn.jsdelivr.net/gh/interconnectit/search-replace-db@master/README.md))
- [MySQL Table Converters](https://awesome-repositories.com/f/data-databases/mysql-table-converters.md) — Changes storage engines and character collations across multiple MySQL tables.
- [Table Engine and Collation Converters](https://awesome-repositories.com/f/data-databases/storage-configuration/table-level-storage-formats/table-engine-and-collation-converters.md) — Updates the storage engine or character collation of database tables to optimize data storage and sorting. ([source](https://cdn.jsdelivr.net/gh/interconnectit/search-replace-db@master/README.md))
- [Operation Targeting](https://awesome-repositories.com/f/data-databases/text-pattern-matching/text-search-and-replace/database-search-and-replace-operations/operation-targeting.md) — Limits search and replace operations to specific tables or columns to prevent accidental changes to unrelated data. ([source](https://cdn.jsdelivr.net/gh/interconnectit/search-replace-db@master/README.md))

### Part of an Awesome List

- [Regex Pattern Matching](https://awesome-repositories.com/f/awesome-lists/devtools/regex-and-pattern-matching/regex-pattern-matching.md) — Uses regular expression pattern matching to identify and replace complex text strings within database columns.

### Content Management & Publishing

- [CMS Reference Updates](https://awesome-repositories.com/f/content-management-publishing/php-content-management-systems/cms-reference-updates.md) — Updates configuration strings and site URLs across PHP-based content management systems after a domain change.

### Development Tools & Productivity

- [Database Migration Tools](https://awesome-repositories.com/f/development-tools-productivity/database-migration-tools.md) — Updates database references and table engines when migrating PHP-based websites and content management systems.
- [Dry Run Simulations](https://awesome-repositories.com/f/development-tools-productivity/dry-run-simulations.md) — Simulates replacement operations to calculate and preview pending modifications without committing changes to the database.

### Programming Languages & Runtimes

- [Serialized String Substitutions](https://awesome-repositories.com/f/programming-languages-runtimes/string-pattern-replacements/serialized-string-substitutions.md) — Swaps text within a database while preserving the integrity of serialized data structures. ([source](https://interconnectit.com/products/search-and-replace-for-wordpress-databases/))
