归档 write 编程 财务软件 会计 数据库 网络工程 运维 自考 doc文档系统 管理
 

Mysql Community Edition 镜像使用帮助

Debian/Ubuntu 用户

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

 

 

deb https://mirrors.tuna.tsinghua.edu.cn/mysql/apt/debian buster mysql-5.6 mysql-5.7 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.0mysql-connectorsmysql-tools在RHEL 7/8上还提供了aarch64版本。

 

 

[mysql-connectors-community]
name=MySQL Connectors Community
baseurl=https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql-connectors-community-el7-$basearch/
enabled=1
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql

[mysql-tools-community]
name=MySQL Tools Community
baseurl=https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql-tools-community-el7-$basearch/
enabled=1
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql

[mysql-5.6-community]
name=MySQL 5.6 Community Server
baseurl=https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql-5.6-community-el7-$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql

[mysql-5.7-community]
name=MySQL 5.7 Community Server
baseurl=https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql-5.7-community-el7-$basearch/
enabled=1
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql

[mysql-8.0-community]
name=MySQL 8.0 Community Server
baseurl=https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql-8.0-community-el7-$basearch/
enabled=1
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql

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

posted @ 2021-11-07 16:10  少时的路  阅读(100)  评论(0编辑  收藏  举报