K&

 

mysql官方安装网址资源页

https://dev.mysql.com/downloads/

 

 

[root@master ~]# yum repolist all | grep mysql
Repository epel is listed more than once in the configuration
mysql-cluster-7.5-community/x86_64 MySQL Cluster 7.5 Community disabled
mysql-cluster-7.5-community-source MySQL Cluster 7.5 Community disabled
mysql-cluster-7.6-community/x86_64 MySQL Cluster 7.6 Community disabled
mysql-cluster-7.6-community-source MySQL Cluster 7.6 Community disabled
mysql-cluster-8.0-community/x86_64 MySQL Cluster 8.0 Community disabled
mysql-cluster-8.0-community-source MySQL Cluster 8.0 Community disabled
mysql-connectors-community/x86_64  MySQL Connectors Community  enabled:      230
mysql-connectors-community-source  MySQL Connectors Community  disabled
mysql-tools-community/x86_64       MySQL Tools Community       enabled:      138
mysql-tools-community-source       MySQL Tools Community - Sou disabled
mysql-tools-preview/x86_64         MySQL Tools Preview         disabled
mysql-tools-preview-source         MySQL Tools Preview - Sourc disabled
mysql57-community/x86_64           MySQL 5.7 Community Server  disabled
mysql57-community-source           MySQL 5.7 Community Server  disabled
mysql80-community/x86_64           MySQL 8.0 Community Server  enabled:      321
mysql80-community-source           MySQL 8.0 Community Server  disabled

 

[root@master ~]# yum-config-manager --enable mysql57-community

 

[root@master ~]# yum-config-manager --enable mysql57-community
Loaded plugins: fastestmirror, langpacks, product-id, subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

Repository epel is listed more than once in the configuration
================================================================== repo: mysql57-community ===================================================================
[mysql57-community]
async = True
bandwidth = 0
base_persistdir = /var/lib/yum/repos/x86_64/7
baseurl = http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64
cache = 0
cachedir = /var/cache/yum/x86_64/7/mysql57-community
check_config_file_age = True
compare_providers_priority = 80
cost = 1000
deltarpm_metadata_percentage = 100
deltarpm_percentage =
enabled = 1
enablegroups = True
exclude =
failovermethod = priority
ftp_disable_epsv = False
gpgcadir = /var/lib/yum/repos/x86_64/7/mysql57-community/gpgcadir
gpgcakey =
gpgcheck = True
gpgdir = /var/lib/yum/repos/x86_64/7/mysql57-community/gpgdir
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022,
   file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
hdrdir = /var/cache/yum/x86_64/7/mysql57-community/headers
http_caching = all
includepkgs =
ip_resolve =
keepalive = True
keepcache = False
mddownloadpolicy = sqlite
mdpolicy = group:small
mediaid =
metadata_expire = 21600
metadata_expire_filter = read-only:present
metalink =
minrate = 0
mirrorlist =
mirrorlist_expire = 86400
name = MySQL 5.7 Community Server
old_base_cache_dir =
password =
persistdir = /var/lib/yum/repos/x86_64/7/mysql57-community
pkgdir = /var/cache/yum/x86_64/7/mysql57-community/packages
proxy = False
proxy_dict =
proxy_password =
proxy_username =
repo_gpgcheck = False
retries = 10
skip_if_unavailable = False
ssl_check_cert_permissions = True
sslcacert =
sslclientcert =
sslclientkey =
sslverify = True
throttle = 0
timeout = 30.0
ui_id = mysql57-community/x86_64
ui_repoid_vars = releasever,
   basearch
username =

[root@master ~]# yum repolist all | grep mysql
Repository epel is listed more than once in the configuration
mysql-cluster-7.5-community/x86_64 MySQL Cluster 7.5 Community disabled
mysql-cluster-7.5-community-source MySQL Cluster 7.5 Community disabled
mysql-cluster-7.6-community/x86_64 MySQL Cluster 7.6 Community disabled
mysql-cluster-7.6-community-source MySQL Cluster 7.6 Community disabled
mysql-cluster-8.0-community/x86_64 MySQL Cluster 8.0 Community disabled
mysql-cluster-8.0-community-source MySQL Cluster 8.0 Community disabled
mysql-connectors-community/x86_64  MySQL Connectors Community  enabled:      230
mysql-connectors-community-source  MySQL Connectors Community  disabled
mysql-tools-community/x86_64       MySQL Tools Community       enabled:      138
mysql-tools-community-source       MySQL Tools Community - Sou disabled
mysql-tools-preview/x86_64         MySQL Tools Preview         disabled
mysql-tools-preview-source         MySQL Tools Preview - Sourc disabled
mysql57-community/x86_64           MySQL 5.7 Community Server  enabled:      564
mysql57-community-source           MySQL 5.7 Community Server  disabled
mysql80-community/x86_64           MySQL 8.0 Community Server  enabled:      321
mysql80-community-source           MySQL 8.0 Community Server  disabled

 

[root@master yum.repos.d]# yum install -y mysql-community-server.x86_64

 

posted on 2022-02-26 12:01  K&  阅读(55)  评论(0编辑  收藏  举报