# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 2.9.1
- **来源摘要:** Increase performance and stability of a MySQL installation
- **主页:** <https://mysqltuner.com/>
- **仓库:** <https://github.com/jmrenouard/MySQLTuner-perl>
- **最后更新:** 2026-07-29T09:51:56Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- mysqltuner (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.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

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

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | MySQL configuration assistant | https://github.com/major/MySQLTuner-perl


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