# 使用 Homebrew 安装 mysql-search-replace

查看 mysql-search-replace 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

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

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:mysql-search-replace
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/mysql-search-replace>
- **版本:** 4.1.4
- **来源摘要:** Database search and replace script in PHP
- **主页:** <https://interconnectit.com/products/search-and-replace-for-wordpress-databases/>
- **仓库:** <https://github.com/interconnectit/Search-Replace-DB>
- **上游文档:** <https://interconnectit.com/products/search-and-replace-for-wordpress-databases/>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://github.com/interconnectit/Search-Replace-DB/archive/refs/tags/4.1.4.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- srdb (cli)
- srdb (别名)

## 依赖

- php

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 4.1.4
- 本地数据: OK
- 上游仓库: https://github.com/interconnectit/Search-Replace-DB
- 检测到的最新版本: 4.1.4 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

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.

### 使用方式

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.

### 来源

- <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>


## 安全说明

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

- **Geiger 风险:** yellow / 中
- broad file, network, media, or database tool signal
- generalized runtime or code generation signal

## 源数据库详情

- **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


## 相关链接

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


## 来源

- 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
