# 使用 Homebrew, apt, dnf, Nix 安装 mysqltuner

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

## 安装

```sh
sudo av install brew:mysqltuner
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mysqltuner
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install mysqltuner
```

  证据: Debian stable package indexes: mysqltuner from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install mysqltuner
```

  证据: Fedora Rawhide package metadata: mysqltuner from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#mysqltuner
```

  证据: nixpkgs package indexes: pkgs/by-name/my/mysqltuner/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:mysqltuner
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/mysqltuner>
- **版本:** 2.9.1
- **来源摘要:** Increase performance and stability of a MySQL installation
- **主页:** <https://mysqltuner.com/>
- **仓库:** <https://github.com/jmrenouard/MySQLTuner-perl>
- **上游文档:** <https://mysqltuner.com/>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://github.com/jmrenouard/MySQLTuner-perl/archive/refs/tags/v2.9.1.tar.gz>
- **最后更新:** 2026-07-29T09:51:56Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- mysqltuner (cli)
- mysqltuner (别名)

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.9.1
- 管理器更新时间: 2026-07-29
- 本地数据: OK
- 上游仓库: https://github.com/jmrenouard/MySQLTuner-perl
- 检测到的最新版本: v2.9.1 (当前)
## 项目历史与用法

MySQLTuner is a Perl script for reviewing a MySQL-family server and producing configuration and performance recommendations. The maintained jmrenouard fork describes it as a tool that retrieves configuration variables and status data, then presents a compact report with suggestions for performance and stability. The script headers credit Major Hayden from 2006 onward and Jean-Marie Renouard from 2015 onward, which matches the project's split between the original `major/MySQLTuner-perl` lineage and the active `jmrenouard/MySQLTuner-perl` repository.

### 使用方式

The tool's niche is advisory rather than automatic tuning. Its README emphasizes MySQL, MariaDB, Percona Server, Galera, InnoDB, MyISAM, Performance Schema, Linux OS metrics, cloud autodiscovery, SSL/TLS checks, authentication auditing, schema modeling, predictive capacity planning, and health scoring. It also warns users to understand every recommendation, test on staging, and collect enough uptime before trusting the report. Homebrew packages it as the `mysqltuner` formula, giving DBAs and developers a quick CLI audit tool for local, remote, and packaged MySQL installations.

### 来源

- <https://formulae.brew.sh/formula/mysqltuner>
- <https://github.com/jmrenouard/MySQLTuner-perl>
- <https://raw.githubusercontent.com/jmrenouard/MySQLTuner-perl/master/README.md>
- <https://raw.githubusercontent.com/major/MySQLTuner-perl/master/mysqltuner.pl>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 源数据库详情

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

## 其他软件包管理器记录

- Debian apt - mysqltuner - 2.6.0-1: normalized package name match | Debian stable package indexes: mysqltuner from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | high-performance MySQL tuning script | https://github.com/major/MySQLTuner-perl
- Nix - mysqltuner: normalized package name match | nixpkgs package indexes: pkgs/by-name/my/mysqltuner/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - mysqltuner - 2.5.2-2: normalized package name match | Ubuntu 24.04 LTS package indexes: mysqltuner from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | high-performance MySQL tuning script | https://github.com/major/MySQLTuner-perl
- dnf - mysqltuner - 2.8.45-2.fc45: normalized package name match | Fedora Rawhide package metadata: mysqltuner from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | MySQL configuration assistant | https://github.com/major/MySQLTuner-perl


## 相关链接

- [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.
- [percona-toolkit](https://pkg.so/zh-hans/brew/percona-toolkit/) - Shares pkgdb curated category or tags: cli, data, mariadb, mysql.
- [mycli](https://pkg.so/zh-hans/brew/mycli/) - Shares pkgdb curated category or tags: cli, data, mariadb, mysql.
- [dolphie](https://pkg.so/zh-hans/brew/dolphie/) - Shares pkgdb curated category or tags: cli, data, mariadb, mysql.
- [mysql-to-sqlite3](https://pkg.so/zh-hans/brew/mysql-to-sqlite3/) - Shares pkgdb curated category or tags: cli, data, mariadb, mysql.
- [skeema](https://pkg.so/zh-hans/brew/skeema/) - Shares pkgdb curated category or tags: cli, data, mariadb, mysql.
- [mysql](https://pkg.so/zh-hans/brew/mysql/) - Shares pkgdb curated category or tags: cli, data, mysql.
- [mysql@8.0](https://pkg.so/zh-hans/brew/mysql-8-0/) - Shares pkgdb curated category or tags: cli, data, mysql.
- [mysql@8.4](https://pkg.so/zh-hans/brew/mysql-8-4/) - Shares pkgdb curated category or tags: cli, data, mysql.

## Combined YAML source

View the package source record on GitHub. [combined/mysqltuner.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mysqltuner.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
- external package-manager database matches
- cross-ecosystem install command graph
