MirrorZ Help

MySQL 软件仓库镜像使用帮助

选择镜像

Debian/Ubuntu 用户

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

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

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

RHEL/CentOS 用户

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

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

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

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

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

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

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

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