# Install mysql-search-replace with Homebrew

Database search and replace script in PHP. Version 4.1.4 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:mysql-search-replace
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install mysql-search-replace
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:mysql-search-replace
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/mysql-search-replace>
- **Version:** 4.1.4
- **Source summary:** Database search and replace script in PHP
- **Homepage:** <https://interconnectit.com/products/search-and-replace-for-wordpress-databases/>
- **Repository:** <https://github.com/interconnectit/Search-Replace-DB>
- **Upstream docs:** <https://interconnectit.com/products/search-and-replace-for-wordpress-databases/>
- **License:** GPL-3.0-or-later
- **Source archive:** <https://github.com/interconnectit/Search-Replace-DB/archive/refs/tags/4.1.4.tar.gz>
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- srdb (cli)
- srdb (alias)

## Dependencies

- php

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 4.1.4
- Local data: ok
- Upstream repository: https://github.com/interconnectit/Search-Replace-DB
- Upstream latest detected: 4.1.4 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

Search Replace DB is interconnect/it's GPLv3 PHP utility for database search-and-replace work during PHP and MySQL site migrations. Its own README frames the tool around migrating PHP/MySQL websites and says it works with common CMSes; the workflow is deliberately operational, with backups first, file migration, upload of the script folder, a browser UI, and a safe dry run before applying replacements.

### How it is used

The 4.1 line added several features that explain the package's niche: multiple search-replaces, table exclusions, PHP/module/security checks, CLI SSL connection support, and removal of WordPress-specific automatic credential loading because it created security issues when users left the script on sites. In practice the Homebrew formula packages it as `mysql-search-replace` with the `srdb` executable, making a historically web-distributed migration script available as a command-line tool for developers who need a targeted database replacement step rather than a full CMS migration framework.

### Sources

- <https://formulae.brew.sh/formula/mysql-search-replace>
- <https://github.com/interconnectit/Search-Replace-DB>
- <https://interconnectit.com/search-and-replace-for-wordpress-databases/>
- <https://raw.githubusercontent.com/interconnectit/Search-Replace-DB/master/README.md>


## Security Notes

broad file, network, media, or database tool signal. generalized runtime or code generation signal.

- **Geiger risk:** yellow / medium
- broad file, network, media, or database tool signal
- generalized runtime or code generation signal

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** mysql-search-replace
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable


## Related links

- [Secret-risk packages](https://pkg.so/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://pkg.so/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [php](https://pkg.so/brew/php/) - Runtime dependency declared by Homebrew.
- [bee](https://pkg.so/brew/bee/) - Shares pkgdb curated category or tags: cli, data, database, database-migration, migration.
- [mysql-to-sqlite3](https://pkg.so/brew/mysql-to-sqlite3/) - Shares pkgdb curated category or tags: cli, data, database-migration, mysql.
- [mysql](https://pkg.so/brew/mysql/) - Shares pkgdb curated category or tags: cli, data, database, mysql.
- [mysql@8.0](https://pkg.so/brew/mysql-8-0/) - Shares pkgdb curated category or tags: cli, data, database, mysql.
- [mysql@8.4](https://pkg.so/brew/mysql-8-4/) - Shares pkgdb curated category or tags: cli, data, database, mysql.
- [lazysql](https://pkg.so/brew/lazysql/) - Shares pkgdb curated category or tags: cli, data, database, mysql.
- [rainfrog](https://pkg.so/brew/rainfrog/) - Shares pkgdb curated category or tags: cli, data, database, mysql.
- [mydumper](https://pkg.so/brew/mydumper/) - Shares pkgdb curated category or tags: cli, data, database, mysql.

## Combined YAML source

View the package source record on GitHub. [combined/mysql-search-replace.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mysql-search-replace.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
