MirrorZ Help

MySQL 软件仓库镜像使用帮助

选择镜像

Debian/Ubuntu 用户

再选择你的 Debian/Ubuntu 版本,文本框中内容写进 /etc/apt/sources.list.d/mysql-community.list

发行版
MySQL 版本号
deb https://(Loading...)/apt/debian bookworm mysql-8.0 mysql-tools

参考文档:https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/

RHEL/CentOS 用户

新建 /etc/yum.repos.d/mysql-community.repo,内容如下:

注:mysql-8.0, mysql-connectorsmysql-tools 在 RHEL 7/8 上还提供了 aarch64 版本。

注:TUNA / BFSU 等镜像站不提供 CentOS 8 与 CentOS 6 版本

发行版
MySQL 版本号
[mysql-connectors-community]
name=MySQL Connectors Community
baseurl=https://(Loading...)/yum/mysql-connectors-community-el7-$basearch/
enabled=1
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
       https://repo.mysql.com/RPM-GPG-KEY-mysql-2022

[mysql-tools-community]
name=MySQL Tools Community
baseurl=https://(Loading...)/yum/mysql-tools-community-el7-$basearch/
enabled=1
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
       https://repo.mysql.com/RPM-GPG-KEY-mysql-2022

[mysql-8.0-community]
name=MySQL 8.0 Community Server
baseurl=https://(Loading...)/yum/mysql-8.0-community-el7-$basearch/
enabled=1
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
       https://repo.mysql.com/RPM-GPG-KEY-mysql-2022

参考文档:https://dev.mysql.com/doc/mysql-yum-repo-quick-guide/en/

这个页面的内容有问题?在 GitHub Issue 反馈

想完善这个页面?查看我们的贡献指南在 GitHub 上查看此页的源代码

本页面的全部内容在 CC BY-NC-SA 4.0 协议之条款下提供,附加条款亦可能应用。