如出现
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
mysql-community-common-5.7.27- FAILED
http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-common-5.7.27-1.el7.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: repo.mysql.com; Unknown error"B --:--:-- ETA
Trying other mirror.
本地尝试下载rpm文件可以成功,服务器上异常,一般出现是因为DNS解析异常导致,换一个DNS服务即可解决
vi /etc/resolv.conf
增加如下服务器
nameserver 8.8.8.8
重启网络
systemctl restart network
再次尝试,更新成功!