# interconnectit/Search-Replace-DB

This script was made to aid the process of migrating PHP and MySQL based websites. Works with most common CMSes.

Repository: https://github.com/interconnectit/Search-Replace-DB
Canonical: https://ross.abutalabs.com/products/search-replace-db
Homepage: https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
Language: PHP
License: GPL-3.0
License Family: copyleft
Last push: 2025-04-11T18:06:07+00:00

## Health v2 (maintenance only)
Score: 30/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 16, release rhythm 8, longevity 100
- inputs: {"age_days": 5385, "days_push": 509, "days_rel": 509, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4105, forks 846 (observed 2026-08-28T04:08:35.618932+00:00)

## What it is
A PHP script (with web UI and CLI) that performs search-and-replace operations across MySQL databases, safely handling serialized PHP strings. It is designed to aid migration of PHP/MySQL websites, especially WordPress and other common CMSes.

## Use cases
- replace domain urls in wordpress database after migration
- search and replace serialized data in mysql database
- migrate a php mysql site to a new domain
- update database strings without breaking serialized php
- bulk replace strings across all database tables
- dry run a database search and replace before committing

## When to choose
- migrating a WordPress or other PHP/MySQL CMS to a new domain or server
- you need to safely handle serialized PHP strings during replacement
- you want both a browser UI and a CLI for database-wide replacements

## When to avoid
- you use a non-MySQL database like PostgreSQL
- you cannot delete the script after use and worry about leaving it on a production server
- you need a long-running managed migration tool rather than a one-off script

## Facets
- artifact type: cli-tool
- maturity: active
- function: database, search-engine, cli, web-framework
- domain: databases, developer-tools, cms, web-development
- platform: php, cli, windows
- tags: mysql, wordpress, database-migration, search-replace, serialized-php, cms-migration, web-server, linux, macos

## Member repositories
- interconnectit/Search-Replace-DB (main) score 30

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:35.618932+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:23:14.810248+00:00, confidence not recorded.
  - readme: https://github.com/interconnectit/Search-Replace-DB (fetched 2026-08-28T04:08:35.618932+00:00, sha 0fdcae3a4931)
  - homepage: https://interconnectit.com/products/search-and-replace-for-wordpress-databases/ (fetched 2026-08-29T09:14:46.101815+00:00, sha fdd0f4367fa3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
