# 使用 Homebrew, apt, apk, zypper 安装 mysql-client@8.0

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mysql-client@8.0
```

  证据: local Homebrew formula metadata

### Linux

- Ubuntu apt (92%):

```sh
sudo apt install mysql-client-8.0
```

  证据: Ubuntu 24.04 LTS package indexes: mysql-client-8.0 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz

- apk (92%):

```sh
sudo apk add mysql-client
```

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

- zypper (92%):

```sh
sudo zypper install mariadb-client
```

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

## 软件包事实

- **软件包键:** brew:mysql-client@8.0
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/mysql-client@8.0>
- **版本:** 8.0.46
- **来源摘要:** Open source relational database management system
- **主页:** <https://github.com/mysql/mysql-server>
- **仓库:** <https://github.com/mysql/mysql-server>
- **上游文档:** <https://dev.mysql.com/doc/refman/8.0/en>
- **许可证:** GPL-2.0-only WITH Universal-FOSS-exception-1.0
- **源码归档:** <https://cdn.mysql.com/Downloads/MySQL-8.0/mysql-boost-8.0.46.tar.gz>
- **最后更新:** 2026-04-21T20:03:55Z
- **已生成:** 2026-07-10T07:20:53+00:00

## 可执行文件

- lz4_decompress (cli)
- mysql_ssl_rsa_setup (cli)
- mysqlpump (cli)
- zlib_decompress (cli)
- lz4_decompress (别名)
- mysql_ssl_rsa_setup (别名)
- mysqlpump (别名)
- zlib_decompress (别名)

## 依赖

- libevent
- libfido2
- openssl@3
- zlib-ng-compat
- zstd

## 构建依赖

- bison
- cmake
- pkgconf

## macOS 提供的库

- libedit

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-10
- 管理器版本: 8.0.46
- 管理器更新时间: 2026-04-21
- 本地数据: OK
- 上游仓库: https://github.com/mysql/mysql-server
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

The `mysql-client@8.0` formula packages the client-side tools for the MySQL 8.0 series, separating the CLI utilities from a full local server install. It inherits the broader MySQL history: MySQL was founded in 1995 by Allan Larsson, David Axmark, and Michael "Monty" Widenius, grew through early web and Linux adoption, moved to the GPL during the MySQL 3.23 era, was acquired by Sun in 2008, and came under Oracle through Oracle's acquisition of Sun.

### 项目历史

MySQL 8.0 was a major technical generation. Oracle's 8.0 manual highlights a transactional data dictionary replacing older metadata files and nontransactional tables, atomic DDL, and automatic server-side upgrade work that formerly depended on `mysql_upgrade`. The 8.0 release notes list the GA line beginning with 8.0.11 on 2018-04-19 and running through 8.0.46, with the notes marking 8.0.46 as the April 2026 EOL point for the series.

### 使用方式

For users, the Homebrew `@8.0` formula preserves access to the 8.0-compatible client command set: `mysql` for SQL sessions and scripts, `mysqldump` and `mysqlpump` for logical export workflows, `mysqladmin` for server operations, `mysqlcheck` for table maintenance, `mysqlbinlog` for binary log inspection, and helper programs such as `mysql_config_editor`. It is useful when applications, servers, or deployment policies remain pinned to the 8.0 protocol and tooling behavior rather than the unversioned client package.

### 来源

- <https://blogs.oracle.com/mysql/mysql-retrospective-the-early-years>
- <https://dev.mysql.com/doc/refman/5.7/en/programs-client.html>
- <https://dev.mysql.com/doc/refman/8.0/en/mysql-nutshell.html>
- <https://dev.mysql.com/doc/refman/8.0/en/mysqldump.html>
- <https://dev.mysql.com/doc/relnotes/mysql/8.0/en/>
- <https://formulae.brew.sh/formula/mysql-client@8.0>
- <https://www.oracle.com/corporate/pressrelease/oracle-buys-sun-042009.html>


## 安全说明

没有找到 mysql-client@8.0 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 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: /etc/my.cnf, /etc/mysql/my.cnf, SYSCONFDIR/my.cnf, ~/.my.cnf
- Windows: %WINDIR%\my.ini, %WINDIR%\my.cnf, C:\my.ini, C:\my.cnf, %APPDATA%\MySQL\.mylogin.cnf

## Credential files

- Unix: ~/.my.cnf, ~/.mylogin.cnf
- Windows: %APPDATA%\MySQL\.mylogin.cnf
## 源数据库详情

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

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

- 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 - 8.0.36-2ubuntu3: versioned package alias 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/
- apk - mysql-client - 11.8.8-r0: versioned package alias match | Alpine Linux edge package indexes: mysql-client from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Dummy package for mysql-client migration | https://www.mariadb.org/
- zypper - mariadb-client - 11.8.8-1.1: versioned package alias match | openSUSE Tumbleweed package metadata: mariadb-client from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Client for MariaDB | https://www.mariadb.org


## 相关链接

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

## Combined YAML source

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


## 来源

- 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
