# 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://github.com/interconnectit/Search-Replace-DB#readme>
- **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-07-08T18:08:21+00:00

## Executables

- srdb (cli)
- srdb (alias)

## Dependencies

- php

## Install behavior

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

## Freshness

- Page generated: 2026-07-08
- 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://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [php](https://www.automicvault.com/pkg/brew/php/) - Runtime dependency declared by Homebrew.
- [mysql-to-sqlite3](https://www.automicvault.com/pkg/brew/mysql-to-sqlite3/) - Shares av.db curated category or tags: cli, data, database-migration, mysql.
- [automysqlbackup](https://www.automicvault.com/pkg/brew/automysqlbackup/) - Shares av.db curated category or tags: cli, data, database, mysql.
- [bee](https://www.automicvault.com/pkg/brew/bee/) - Shares av.db curated category or tags: cli, data, database, migration.
- [dumpling](https://www.automicvault.com/pkg/brew/dumpling/) - Shares av.db curated category or tags: cli, data, database, mysql.
- [gh-ost](https://www.automicvault.com/pkg/brew/gh-ost/) - Shares av.db curated category or tags: cli, data, database, mysql.
- [kitchen-sync](https://www.automicvault.com/pkg/brew/kitchen-sync/) - Shares av.db curated category or tags: cli, data, database, mysql.
- [lazysql](https://www.automicvault.com/pkg/brew/lazysql/) - Shares av.db curated category or tags: cli, data, database, mysql.
- [mydumper](https://www.automicvault.com/pkg/brew/mydumper/) - Shares av.db curated category or tags: cli, data, database, mysql.
- [mysql](https://www.automicvault.com/pkg/brew/mysql/) - Package names and metadata indicate a similar tool family. Shared terms: cli, data, database, mysql.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
