# 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
- **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>
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- srdb (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 4.1.4
## 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


## 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
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
