yum方式安装mysql很慢问题优化

一、官网安装及问题

官网提供的yum安装命令如下:

# 下载repo仓库
wget https://repo.mysql.com//mysql80-community-release-el7-3.noarch.rpm
# 安装仓库
rpm -ivh mysql80-community-release-el7-3.noarch.rpm
# 安装mysqlserver
yum install -y mysql-community-server

但是安装会非常慢,主要是在下载mysql-community-server-8.0.23-1.el7.x86_64.rpm 和 mysql-community-client-8.0.23-1.el7.x86_64.rpm速度特别慢。

官网实际上是在/etc/yum.repos.d目录加了两个repo文件,mysql-community.repo和mysql-community-source.repo,内容如下

mysql-community.repo

# Enable to use MySQL 5.5
[mysql55-community]
name=MySQL 5.5 Community Server
baseurl=http://repo.mysql.com/yum/mysql-5.5-community/el/7/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
 
# Enable to use MySQL 5.6
[mysql56-community]
name=MySQL 5.6 Community Server
baseurl=http://repo.mysql.com/yum/mysql-5.6-community/el/7/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
 
# Enable to use MySQL 5.7
[mysql57-community]
name=MySQL 5.7 Community Server
baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/7/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
 
[mysql80-community]
name=MySQL 8.0 Community Server
baseurl=http://repo.mysql.com/yum/mysql-8.0-community/el/7/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
 
[mysql-connectors-community]
name=MySQL Connectors Community
baseurl=http://repo.mysql.com/yum/mysql-connectors-community/el/7/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
 
[mysql-tools-community]
name=MySQL Tools Community
baseurl=http://repo.mysql.com/yum/mysql-tools-community/el/7/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
 
[mysql-tools-preview]
name=MySQL Tools Preview
baseurl=http://repo.mysql.com/yum/mysql-tools-preview/el/7/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
 
[mysql-cluster-7.5-community]
name=MySQL Cluster 7.5 Community
baseurl=http://repo.mysql.com/yum/mysql-cluster-7.5-community/el/7/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
 
[mysql-cluster-7.6-community]
name=MySQL Cluster 7.6 Community
baseurl=http://repo.mysql.com/yum/mysql-cluster-7.6-community/el/7/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
 
[mysql-cluster-8.0-community]
name=MySQL Cluster 8.0 Community
baseurl=http://repo.mysql.com/yum/mysql-cluster-8.0-community/el/7/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

mysql-community-source.repo

 

[mysql55-community-source]
name=MySQL 5.5 Community Server - Source
baseurl=http://repo.mysql.com/yum/mysql-5.5-community/el/7/SRPMS
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
 
[mysql56-community-source]
name=MySQL 5.6 Community Server - Source
baseurl=http://repo.mysql.com/yum/mysql-5.6-community/el/7/SRPMS
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
 
[mysql57-community-source]
name=MySQL 5.7 Community Server - Source
baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/7/SRPMS
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
 
[mysql80-community-source]
name=MySQL 8.0 Community Server - Source
baseurl=http://repo.mysql.com/yum/mysql-8.0-community/el/7/SRPMS
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
 
[mysql-connectors-community-source]
name=MySQL Connectors Community - Source
baseurl=http://repo.mysql.com/yum/mysql-connectors-community/el/7/SRPMS
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
 
[mysql-tools-community-source]
name=MySQL Tools Community - Source
baseurl=http://repo.mysql.com/yum/mysql-tools-community/el/7/SRPMS
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
 
[mysql-tools-preview-source]
name=MySQL Tools Preview - Source
baseurl=http://repo.mysql.com/yum/mysql-tools-preview/el/7/SRPMS
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
 
[mysql-cluster-7.5-community-source]
name=MySQL Cluster 7.5 Community - Source
baseurl=http://repo.mysql.com/yum/mysql-cluster-7.5-community/el/7/SRPMS
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
 
[mysql-cluster-7.6-community-source]
name=MySQL Cluster 7.6 Community - Source
baseurl=http://repo.mysql.com/yum/mysql-cluster-7.6-community/el/7/SRPMS
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
 
[mysql-cluster-8.0-community-source]
name=MySQL Cluster 8.0 Community - Source
baseurl=http://repo.mysql.com/yum/mysql-cluster-8.0-community/el/7/SRPMS
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

 

所以,最快的方法还是用镜像。清华源的镜像同步的时候改URL路径了,USTC的没改。

镜像现在建议用OpenTuna源和平安源的。其他镜像有各种各样的问题。

二、各镜像repo配置

将各源的repo文件拷贝到/etc/yum.repos.d目录下,即可使用对应的mysql镜像

1.USTC源

特点:跟repo.mysql.com目录一致,但是同步文件不全

mysql-community.repo

# Enable to use MySQL 5.5
[mysql55-community]
name=MySQL 5.5 Community Server
baseurl=https://mirrors.ustc.edu.cn/mysql-repo/yum/mysql-5.5-community/el/7/$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
# Enable to use MySQL 5.6
[mysql56-community]
name=MySQL 5.6 Community Server
baseurl=https://mirrors.ustc.edu.cn/mysql-repo/yum/mysql-5.6-community/el/7/$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
# Enable to use MySQL 5.7
[mysql57-community]
name=MySQL 5.7 Community Server
baseurl=https://mirrors.ustc.edu.cn/mysql-repo/yum/mysql-5.7-community/el/7/$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql80-community]
name=MySQL 8.0 Community Server
baseurl=https://mirrors.ustc.edu.cn/mysql-repo/yum/mysql-8.0-community/el/7/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-connectors-community]
name=MySQL Connectors Community
baseurl=https://mirrors.ustc.edu.cn/mysql-repo/yum/mysql-connectors-community/el/7/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-tools-community]
name=MySQL Tools Community
baseurl=https://mirrors.ustc.edu.cn/mysql-repo/yum/mysql-tools-community/el/7/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-tools-preview]
name=MySQL Tools Preview
baseurl=https://mirrors.ustc.edu.cn/mysql-repo/yum/mysql-tools-preview/el/7/$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-cluster-7.5-community]
name=MySQL Cluster 7.5 Community
baseurl=https://mirrors.ustc.edu.cn/mysql-repo/yum/mysql-cluster-7.5-community/el/7/$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-cluster-7.6-community]
name=MySQL Cluster 7.6 Community
baseurl=https://mirrors.ustc.edu.cn/mysql-repo/yum/mysql-cluster-7.6-community/el/7/$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-cluster-8.0-community]
name=MySQL Cluster 8.0 Community
baseurl=https://mirrors.ustc.edu.cn/mysql-repo/yum/mysql-cluster-8.0-community/el/7/$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql

mysql-community-source.repo

[mysql55-community-source]
name=MySQL 5.5 Community Server - Source
baseurl=https://mirrors.ustc.edu.cn/mysql-repo/yum/mysql-5.5-community/el/7/SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql56-community-source]
name=MySQL 5.6 Community Server - Source
baseurl=https://mirrors.ustc.edu.cn/mysql-repo/yum/mysql-5.6-community/el/7/SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql57-community-source]
name=MySQL 5.7 Community Server - Source
baseurl=https://mirrors.ustc.edu.cn/mysql-repo/yum/mysql-5.7-community/el/7/SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql80-community-source]
name=MySQL 8.0 Community Server - Source
baseurl=https://mirrors.ustc.edu.cn/mysql-repo/yum/mysql-8.0-community/el/7/SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-connectors-community-source]
name=MySQL Connectors Community - Source
baseurl=https://mirrors.ustc.edu.cn/mysql-repo/yum/mysql-connectors-community/el/7/SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-tools-community-source]
name=MySQL Tools Community - Source
baseurl=https://mirrors.ustc.edu.cn/mysql-repo/yum/mysql-tools-community/el/7/SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-tools-preview-source]
name=MySQL Tools Preview - Source
baseurl=https://mirrors.ustc.edu.cn/mysql-repo/yum/mysql-tools-preview/el/7/SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-cluster-7.5-community-source]
name=MySQL Cluster 7.5 Community - Source
baseurl=https://mirrors.ustc.edu.cn/mysql-repo/yum/mysql-cluster-7.5-community/el/7/SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-cluster-7.6-community-source]
name=MySQL Cluster 7.6 Community - Source
baseurl=https://mirrors.ustc.edu.cn/mysql-repo/yum/mysql-cluster-7.6-community/el/7/SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-cluster-8.0-community-source]
name=MySQL Cluster 8.0 Community - Source
baseurl=https://mirrors.ustc.edu.cn/mysql-repo/yum/mysql-cluster-8.0-community/el/7/SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql

 

 

2.清华源

特点:是国内其他源的上游,安装不稳定,大文件下载会反复降速到0,会导致yum安装跳出。

mysql-community.repo

# Enable to use MySQL 5.5
[mysql55-community]
name=MySQL 5.5 Community Server
baseurl=https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql-5.5-community-el7-$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
# Enable to use MySQL 5.6
[mysql56-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
 
# Enable to use MySQL 5.7
[mysql57-community]
name=MySQL 5.7 Community Server
baseurl=https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql-5.7-community-el7-$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql80-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
 
[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-tools-preview]
name=MySQL Tools Preview
baseurl=https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql-tools-preview/el/7/$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-cluster-7.5-community]
name=MySQL Cluster 7.5 Community
baseurl=https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql-cluster-7.5-community-el7-$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-cluster-7.6-community]
name=MySQL Cluster 7.6 Community
baseurl=https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql-cluster-7.6-community-el7-$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-cluster-8.0-community]
name=MySQL Cluster 8.0 Community
baseurl=https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql-cluster-8.0-community-el7-$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql

mysql-community-source.repo

[mysql55-community-source]
name=MySQL 5.5 Community Server - Source
baseurl=https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql-5.5-community-el7-SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql56-community-source]
name=MySQL 5.6 Community Server - Source
baseurl=https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql-5.6-community-el7-SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql57-community-source]
name=MySQL 5.7 Community Server - Source
baseurl=https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql-5.7-community-el7-SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql80-community-source]
name=MySQL 8.0 Community Server - Source
baseurl=https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql-8.0-community-el7-SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-connectors-community-source]
name=MySQL Connectors Community - Source
baseurl=https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql-connectors-community-el7-SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-tools-community-source]
name=MySQL Tools Community - Source
baseurl=https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql-tools-community-el7-SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-tools-preview-source]
name=MySQL Tools Preview - Source
baseurl=https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql-tools-preview/el/7/SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-cluster-7.5-community-source]
name=MySQL Cluster 7.5 Community - Source
baseurl=https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql-cluster-7.5-community-el7-SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-cluster-7.6-community-source]
name=MySQL Cluster 7.6 Community - Source
baseurl=https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql-cluster-7.6-community-el7-SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-cluster-8.0-community-source]
name=MySQL Cluster 8.0 Community - Source
baseurl=https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql-cluster-8.0-community-el7-SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql

 

3.OpenTuna源

特点:同步自清华,速度可以跑满百兆带宽

mysql-community.repo

# Enable to use MySQL 5.5
[mysql55-community]
name=MySQL 5.5 Community Server
baseurl=https://opentuna.cn/mysql/yum/mysql-5.5-community-el7-$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
# Enable to use MySQL 5.6
[mysql56-community]
name=MySQL 5.6 Community Server
baseurl=https://opentuna.cn/mysql/yum/mysql-5.6-community-el7-$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
# Enable to use MySQL 5.7
[mysql57-community]
name=MySQL 5.7 Community Server
baseurl=https://opentuna.cn/mysql/yum/mysql-5.7-community-el7-$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql80-community]
name=MySQL 8.0 Community Server
baseurl=https://opentuna.cn/mysql/yum/mysql-8.0-community-el7-$basearch/
enabled=1
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-connectors-community]
name=MySQL Connectors Community
baseurl=https://opentuna.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://opentuna.cn/mysql/yum/mysql-tools-community-el7-$basearch/
enabled=1
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-tools-preview]
name=MySQL Tools Preview
baseurl=https://opentuna.cn/mysql/yum/mysql-tools-preview/el/7/$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-cluster-7.5-community]
name=MySQL Cluster 7.5 Community
baseurl=https://opentuna.cn/mysql/yum/mysql-cluster-7.5-community-el7-$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-cluster-7.6-community]
name=MySQL Cluster 7.6 Community
baseurl=https://opentuna.cn/mysql/yum/mysql-cluster-7.6-community-el7-$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-cluster-8.0-community]
name=MySQL Cluster 8.0 Community
baseurl=https://opentuna.cn/mysql/yum/mysql-cluster-8.0-community-el7-$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql

 

mysql-community-source.repo

[mysql55-community-source]
name=MySQL 5.5 Community Server - Source
baseurl=https://opentuna.cn/mysql/yum/mysql-5.5-community-el7-SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql56-community-source]
name=MySQL 5.6 Community Server - Source
baseurl=https://opentuna.cn/mysql/yum/mysql-5.6-community-el7-SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql57-community-source]
name=MySQL 5.7 Community Server - Source
baseurl=https://opentuna.cn/mysql/yum/mysql-5.7-community-el7-SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql80-community-source]
name=MySQL 8.0 Community Server - Source
baseurl=https://opentuna.cn/mysql/yum/mysql-8.0-community-el7-SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-connectors-community-source]
name=MySQL Connectors Community - Source
baseurl=https://opentuna.cn/mysql/yum/mysql-connectors-community-el7-SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-tools-community-source]
name=MySQL Tools Community - Source
baseurl=https://opentuna.cn/mysql/yum/mysql-tools-community-el7-SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-tools-preview-source]
name=MySQL Tools Preview - Source
baseurl=https://opentuna.cn/mysql/yum/mysql-tools-preview/el/7/SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-cluster-7.5-community-source]
name=MySQL Cluster 7.5 Community - Source
baseurl=https://opentuna.cn/mysql/yum/mysql-cluster-7.5-community-el7-SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-cluster-7.6-community-source]
name=MySQL Cluster 7.6 Community - Source
baseurl=https://opentuna.cn/mysql/yum/mysql-cluster-7.6-community-el7-SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-cluster-8.0-community-source]
name=MySQL Cluster 8.0 Community - Source
baseurl=https://opentuna.cn/mysql/yum/mysql-cluster-8.0-community-el7-SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql

4.平安源

特点:同步自清华,下载稳定,稳定的速度在1.2M/s

mysql-community.repo

# Enable to use MySQL 5.5
[mysql55-community]
name=MySQL 5.5 Community Server
baseurl=https://mirrors.pinganyun.com/mysql/yum/mysql-5.5-community-el7-$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
# Enable to use MySQL 5.6
[mysql56-community]
name=MySQL 5.6 Community Server
baseurl=https://mirrors.pinganyun.com/mysql/yum/mysql-5.6-community-el7-$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
# Enable to use MySQL 5.7
[mysql57-community]
name=MySQL 5.7 Community Server
baseurl=https://mirrors.pinganyun.com/mysql/yum/mysql-5.7-community-el7-$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql80-community]
name=MySQL 8.0 Community Server
baseurl=https://mirrors.pinganyun.com/mysql/yum/mysql-8.0-community-el7-$basearch/
enabled=1
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-connectors-community]
name=MySQL Connectors Community
baseurl=https://mirrors.pinganyun.com/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.pinganyun.com/mysql/yum/mysql-tools-community-el7-$basearch/
enabled=1
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-tools-preview]
name=MySQL Tools Preview
baseurl=https://mirrors.pinganyun.com/mysql/yum/mysql-tools-preview/el/7/$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-cluster-7.5-community]
name=MySQL Cluster 7.5 Community
baseurl=https://mirrors.pinganyun.com/mysql/yum/mysql-cluster-7.5-community-el7-$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-cluster-7.6-community]
name=MySQL Cluster 7.6 Community
baseurl=https://mirrors.pinganyun.com/mysql/yum/mysql-cluster-7.6-community-el7-$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-cluster-8.0-community]
name=MySQL Cluster 8.0 Community
baseurl=https://mirrors.pinganyun.com/mysql/yum/mysql-cluster-8.0-community-el7-$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql

 

mysql-community-source.repo

[mysql55-community-source]
name=MySQL 5.5 Community Server - Source
baseurl=https://mirrors.pinganyun.com/mysql/yum/mysql-5.5-community-el7-SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql56-community-source]
name=MySQL 5.6 Community Server - Source
baseurl=https://mirrors.pinganyun.com/mysql/yum/mysql-5.6-community-el7-SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql57-community-source]
name=MySQL 5.7 Community Server - Source
baseurl=https://mirrors.pinganyun.com/mysql/yum/mysql-5.7-community-el7-SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql80-community-source]
name=MySQL 8.0 Community Server - Source
baseurl=https://mirrors.pinganyun.com/mysql/yum/mysql-8.0-community-el7-SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-connectors-community-source]
name=MySQL Connectors Community - Source
baseurl=https://mirrors.pinganyun.com/mysql/yum/mysql-connectors-community-el7-SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-tools-community-source]
name=MySQL Tools Community - Source
baseurl=https://mirrors.pinganyun.com/mysql/yum/mysql-tools-community-el7-SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-tools-preview-source]
name=MySQL Tools Preview - Source
baseurl=https://mirrors.pinganyun.com/mysql/yum/mysql-tools-preview/el/7/SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-cluster-7.5-community-source]
name=MySQL Cluster 7.5 Community - Source
baseurl=https://mirrors.pinganyun.com/mysql/yum/mysql-cluster-7.5-community-el7-SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-cluster-7.6-community-source]
name=MySQL Cluster 7.6 Community - Source
baseurl=https://mirrors.pinganyun.com/mysql/yum/mysql-cluster-7.6-community-el7-SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-cluster-8.0-community-source]
name=MySQL Cluster 8.0 Community - Source
baseurl=https://mirrors.pinganyun.com/mysql/yum/mysql-cluster-8.0-community-el7-SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql

 

5.腾讯源

特点:没同步完整,停在2021年1月

mysql-community.repo

# Enable to use MySQL 5.5
[mysql55-community]
name=MySQL 5.5 Community Server
baseurl=https://mirrors.cloud.tencent.com/mysql/yum/mysql-5.5-community-el7-$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
# Enable to use MySQL 5.6
[mysql56-community]
name=MySQL 5.6 Community Server
baseurl=https://mirrors.cloud.tencent.com/mysql/yum/mysql-5.6-community-el7-$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
# Enable to use MySQL 5.7
[mysql57-community]
name=MySQL 5.7 Community Server
baseurl=https://mirrors.cloud.tencent.com/mysql/yum/mysql-5.7-community-el7-$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql80-community]
name=MySQL 8.0 Community Server
baseurl=https://mirrors.cloud.tencent.com/mysql/yum/mysql-8.0-community-el7-$basearch/
enabled=1
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-connectors-community]
name=MySQL Connectors Community
baseurl=https://mirrors.cloud.tencent.com/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.cloud.tencent.com/mysql/yum/mysql-tools-community-el7-$basearch/
enabled=1
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-tools-preview]
name=MySQL Tools Preview
baseurl=https://mirrors.cloud.tencent.com/mysql/yum/mysql-tools-preview/el/7/$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-cluster-7.5-community]
name=MySQL Cluster 7.5 Community
baseurl=https://mirrors.cloud.tencent.com/mysql/yum/mysql-cluster-7.5-community-el7-$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-cluster-7.6-community]
name=MySQL Cluster 7.6 Community
baseurl=https://mirrors.cloud.tencent.com/mysql/yum/mysql-cluster-7.6-community-el7-$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-cluster-8.0-community]
name=MySQL Cluster 8.0 Community
baseurl=https://mirrors.cloud.tencent.com/mysql/yum/mysql-cluster-8.0-community-el7-$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql

mysql-community-source.repo

 

[mysql55-community-source]
name=MySQL 5.5 Community Server - Source
baseurl=https://mirrors.cloud.tencent.com/mysql/yum/mysql-5.5-community-el7-SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql56-community-source]
name=MySQL 5.6 Community Server - Source
baseurl=https://mirrors.cloud.tencent.com/mysql/yum/mysql-5.6-community-el7-SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql57-community-source]
name=MySQL 5.7 Community Server - Source
baseurl=https://mirrors.cloud.tencent.com/mysql/yum/mysql-5.7-community-el7-SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql80-community-source]
name=MySQL 8.0 Community Server - Source
baseurl=https://mirrors.cloud.tencent.com/mysql/yum/mysql-8.0-community-el7-SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-connectors-community-source]
name=MySQL Connectors Community - Source
baseurl=https://mirrors.cloud.tencent.com/mysql/yum/mysql-connectors-community-el7-SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-tools-community-source]
name=MySQL Tools Community - Source
baseurl=https://mirrors.cloud.tencent.com/mysql/yum/mysql-tools-community-el7-SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-tools-preview-source]
name=MySQL Tools Preview - Source
baseurl=https://mirrors.cloud.tencent.com/mysql/yum/mysql-tools-preview/el/7/SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-cluster-7.5-community-source]
name=MySQL Cluster 7.5 Community - Source
baseurl=https://mirrors.cloud.tencent.com/mysql/yum/mysql-cluster-7.5-community-el7-SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-cluster-7.6-community-source]
name=MySQL Cluster 7.6 Community - Source
baseurl=https://mirrors.cloud.tencent.com/mysql/yum/mysql-cluster-7.6-community-el7-SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
 
[mysql-cluster-8.0-community-source]
name=MySQL Cluster 8.0 Community - Source
baseurl=https://mirrors.cloud.tencent.com/mysql/yum/mysql-cluster-8.0-community-el7-SRPMS
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql

 

posted @ 2022-05-03 12:33  北极之光的博客  阅读(1416)  评论(0编辑  收藏  举报