# Install mysql@8.0 with Homebrew, apt, dnf, apk, chocolatey, pacman, scoop, winget, zypper

Open source relational database management system. Version 8.0.46 via Homebrew; verified 2026-07-07.

## Install

```sh
sudo av install brew:mysql@8.0
```

## Agent safety answer

mysql@8.0 provides MySQL client/server tooling with database mutation authority.

- **Credential access:** Reads database passwords, option files, socket paths, and environment credentials.
- **Remote mutation:** Can alter, drop, import, or export databases.
- **Publish/artifact risk:** Can create dumps or imports containing sensitive data.
- **Recommended control:** Gate destructive SQL, dumps, imports, and credential file access.
- **Agent-use guidance:** Allow safe metadata queries; require approval for writes, exports, and credential reads.

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install mysql@8.0
```

  Evidence: local Homebrew formula metadata

### Linux

- Ubuntu apt (92%):

```sh
sudo apt install libmysqlclient-dev
```

  Evidence: Ubuntu 24.04 LTS package indexes: libmysqlclient-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz

- dnf (92%):

```sh
sudo dnf install mysql8.0
```

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

- apk (92%):

```sh
sudo apk add mysql
```

  Evidence: Alpine Linux edge package indexes: mysql from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install libmysql++-dev
```

  Evidence: Debian stable package indexes: libmysql++-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- pacman (92%):

```sh
sudo pacman -S mariadb
```

  Evidence: Arch Linux sync databases: mariadb from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install mariadb
```

  Evidence: openSUSE Tumbleweed package metadata: mariadb from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install mysql
```

  Evidence: Chocolatey community package catalog: mysql from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','ms-reportviewer2015'

- Scoop (92%):

```sh
scoop install main/mysql
```

  Evidence: Scoop official bucket manifest trees: bucket/mysql.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id Oracle.MySQL -e
```

  Evidence: Windows Package Manager source index: Oracle.MySQL from https://cdn.winget.microsoft.com/cache/source.msix

## Package facts

- **Package key:** brew:mysql@8.0
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/mysql@8.0>
- **Version:** 8.0.46
- **Source summary:** Open source relational database management system
- **Homepage:** <https://github.com/mysql/mysql-server>
- **Repository:** <https://github.com/mysql/mysql-server>
- **Upstream docs:** <https://dev.mysql.com/doc/refman/8.0/en>
- **License:** GPL-2.0-only WITH Universal-FOSS-exception-1.0
- **Source archive:** <https://cdn.mysql.com/Downloads/MySQL-8.0/mysql-boost-8.0.46.tar.gz>
- **Last updated:** 2026-07-07T06:57:50Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Dependencies

- abseil
- icu4c@78
- libevent
- libfido2
- lz4
- openssl@3
- protobuf
- zlib-ng-compat
- zstd

## Build dependencies

- bison
- cmake
- pkgconf

## Uses from macOS

- curl
- cyrus-sasl
- libedit

## Install behavior

- Post-install hook: not defined
- Service: declared
- Caveats: A "/etc/my.cnf" or "/etc/mysql/my.cnf" from another install may interfere with a Homebrew-built server starting up correctly. We've installed your MySQL database without a root password. To secure it run: mysql_secure_installation MySQL is configured to only allow connections from localhost by default To connect run: mysql -u root
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 8.0.46
- Package-manager updated: 2026-07-07
- Local data: ok
- Upstream repository: https://github.com/mysql/mysql-server
- info: No cached GitHub release or tag data was available.
## Project history and usage

MySQL 8.0 is the long-lived 8.0 series of Oracle's MySQL Server. Its release notes trace the series from development milestone 8.0.0 on September 12, 2016, through general-availability 8.0.11 on April 19, 2018. The 8.0 reference manual lists major technical changes that made the series a substantial upgrade over 5.7, including a transactional data dictionary, atomic DDL, automatic upgrade work formerly handled by `mysql_upgrade`, roles, `caching_sha2_password` as the preferred/default authentication plugin, utf8mb4 as the default character set, common table expressions, window functions, JSON enhancements, invisible indexes, descending indexes, resource groups, and other optimizer, security, and InnoDB work.

### How it is used

The package-manager role of `mysql@8.0` is preservation: it lets Homebrew users install the 8.0 branch separately from the unversioned `mysql` formula and from `mysql@8.4`. Homebrew marks the formula deprecated, keg-only, and tied to the 8.0.46 stable build, which matches Oracle's 8.0 release-notes line that covers changes through 8.0.46. It is useful where an application, connector, authentication behavior, upgrade path, or production compatibility policy still depends on the 8.0 series rather than the 8.4 LTS or newer Innovation/LTS model.

### Sources

- <https://dev.mysql.com/doc/refman/8.0/en/mysql-nutshell.html>
- <https://dev.mysql.com/doc/refman/8.4/en/mysql-releases.html>
- <https://dev.mysql.com/doc/relnotes/mysql/8.0/en/>
- <https://formulae.brew.sh/formula/mysql@8.0>


## Security Notes

No matching local secret-handling manifest was found for mysql@8.0. Nucleus package metadata is still published here so future coverage has a stable package URL.



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.my.cnf

## Credential files

- Unix: ~/.my.cnf
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** mysql@8.0
- **Version Scheme:** 0
- **Revision:** 2
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** yes
- **Disabled:** no
- **Keg Only:** yes
- **URL Keys:** stable

## Other Package-Manager Records

- Ubuntu apt - libmysqlclient-dev - 8.0.36-2ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: libmysqlclient-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | MySQL database development files | http://dev.mysql.com/
- Ubuntu apt - libmysqlclient21 - 8.0.36-2ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: libmysqlclient21 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | MySQL database client library | http://dev.mysql.com/
- Ubuntu apt - mysql-client - 8.0.36-2ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: mysql-client from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | MySQL database client (metapackage depending on the latest version) | http://dev.mysql.com/
- Ubuntu apt - mysql-client-8.0 - 8.0.36-2ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: mysql-client-8.0 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | MySQL database client binaries | http://dev.mysql.com/
- Ubuntu apt - mysql-client-core-8.0 - 8.0.36-2ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: mysql-client-core-8.0 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | MySQL database core client binaries | http://dev.mysql.com/
- Ubuntu apt - mysql-router - 8.0.36-2ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: mysql-router from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | route connections from MySQL clients to MySQL servers | https://dev.mysql.com/doc/mysql-router/8.0/en/
- Ubuntu apt - mysql-server - 8.0.36-2ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: mysql-server from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | MySQL database server (metapackage depending on the latest version) | http://dev.mysql.com/
- Ubuntu apt - mysql-server-8.0 - 8.0.36-2ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: mysql-server-8.0 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | MySQL database server binaries and system database setup | http://dev.mysql.com/
- Ubuntu apt - mysql-server-core-8.0 - 8.0.36-2ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: mysql-server-core-8.0 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | MySQL database server binaries | http://dev.mysql.com/
- Ubuntu apt - mysql-source-8.0 - 8.0.36-2ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: mysql-source-8.0 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | MySQL source | http://dev.mysql.com/
- Ubuntu apt - mysql-testsuite - 8.0.36-2ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: mysql-testsuite from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | MySQL regression tests | http://dev.mysql.com/
- Ubuntu apt - mysql-testsuite-8.0 - 8.0.36-2ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: mysql-testsuite-8.0 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | MySQL 8.0 testsuite | http://dev.mysql.com/
- dnf - mysql8.0 - 8.0.46-1.fc45: package manager index match | Fedora Rawhide package metadata: mysql8.0 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | MySQL client programs and shared libraries | http://www.mysql.com
- dnf - mysql8.0-common - 8.0.46-1.fc45: package manager index match | Fedora Rawhide package metadata: mysql8.0-common from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | The shared files required for MySQL server and client | http://www.mysql.com
- dnf - mysql8.0-devel - 8.0.46-1.fc45: package manager index match | Fedora Rawhide package metadata: mysql8.0-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Files for development of MySQL applications | http://www.mysql.com
- dnf - mysql8.0-errmsg - 8.0.46-1.fc45: package manager index match | Fedora Rawhide package metadata: mysql8.0-errmsg from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | The error messages files required by MySQL server | http://www.mysql.com


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Database and data packages](https://www.automicvault.com/pkg/database-data-tools/) - Matched database, SQL, migration, or data-store metadata.
- [libevent](https://www.automicvault.com/pkg/brew/libevent/) - Runtime dependency declared by Homebrew.
- [libfido2](https://www.automicvault.com/pkg/brew/libfido2/) - Runtime dependency declared by Homebrew.
- [lz4](https://www.automicvault.com/pkg/brew/lz4/) - Runtime dependency declared by Homebrew.
- [openssl@3](https://www.automicvault.com/pkg/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [protobuf](https://www.automicvault.com/pkg/brew/protobuf/) - Runtime dependency declared by Homebrew.
- [bison](https://www.automicvault.com/pkg/brew/bison/) - Build dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [mysql](https://www.automicvault.com/pkg/brew/mysql/) - Package name indicates the same formula family.
- [mysql-client@8.0](https://www.automicvault.com/pkg/brew/mysql-client-8-0/) - Package name indicates the same formula family.
- [mysql@8.4](https://www.automicvault.com/pkg/brew/mysql-8-4/) - Package name indicates the same formula family.

## Combined YAML source

View the package source record on GitHub. [combined/mysql@8.0.yml](https://github.com/automic-vault/db/blob/main/combined/mysql@8.0.yml)


## Sources

- Nucleus package database
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
- curated agent safety answer
