# Install mysqltuner with Homebrew, apt, dnf, Nix

Increase performance and stability of a MySQL installation. Version 2.8.45 via Homebrew; verified 2026-06-16.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install mysqltuner
```

  Evidence: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install mysqltuner
```

  Evidence: 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
```

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

- Nix (92%):

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

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

## Package facts

- **Package key:** brew:mysqltuner
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/mysqltuner>
- **Version:** 2.8.45
- **Source summary:** Increase performance and stability of a MySQL installation
- **Homepage:** <https://mysqltuner.com/>
- **Repository:** <https://github.com/jmrenouard/MySQLTuner-perl>
- **Upstream docs:** <https://github.com/jmrenouard/MySQLTuner-perl/blob/master/INTERNALS.md>
- **License:** GPL-3.0-or-later
- **Source archive:** <https://github.com/jmrenouard/MySQLTuner-perl/archive/refs/tags/v2.8.45.tar.gz>
- **Last updated:** 2026-06-16T04:26:30Z
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- mysqltuner (cli)
- mysqltuner (alias)

## Install behavior

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

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.8.45
- Package-manager updated: 2026-06-16
- Local data: ok
- Upstream repository: https://github.com/jmrenouard/MySQLTuner-perl
- Upstream latest detected: v2.8.45 (current)
## Project history and usage

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.

### How it is used

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.

### Sources

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


## Security Notes

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

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Source Database Details

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

## Other Package-Manager Records

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


## 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.
- [dolphie](https://www.automicvault.com/pkg/brew/dolphie/) - Shares av.db curated category or tags: cli, data, mariadb, mysql.
- [mycli](https://www.automicvault.com/pkg/brew/mycli/) - Shares av.db curated category or tags: cli, data, mariadb, mysql.
- [mysql-to-sqlite3](https://www.automicvault.com/pkg/brew/mysql-to-sqlite3/) - Shares av.db curated category or tags: cli, data, mariadb, mysql.
- [percona-toolkit](https://www.automicvault.com/pkg/brew/percona-toolkit/) - Shares av.db curated category or tags: cli, data, mariadb, mysql.
- [skeema](https://www.automicvault.com/pkg/brew/skeema/) - Shares av.db curated category or tags: cli, data, mariadb, mysql.
- [automysqlbackup](https://www.automicvault.com/pkg/brew/automysqlbackup/) - Shares av.db curated category or tags: cli, data, mysql.
- [dumpling](https://www.automicvault.com/pkg/brew/dumpling/) - Shares av.db curated category or tags: cli, data, mysql.
- [geni](https://www.automicvault.com/pkg/brew/geni/) - Shares av.db curated category or tags: cli, data, mysql.

## Combined YAML source

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