第一步:获取mysql YUM源
进入mysql官网获取RPM包下载地址
https://dev.mysql.com/downloads/repo/yum/
点击下载
获取到下载链接:
https://repo.mysql.com//mysql80-community-release-el7-1.noarch.rpm
--------------------------------------------------------------------------------
第二步:下载和安装mysql源
•进入mysql文件夹,没有的自行创建
[root@VM_0_10_centos /]# cd /usr/local/mysql/[root@VM_0_10_centos mysql]# |
•下载源安装包
[root@VM_0_10_centos mysql]# wget https://repo.mysql.com//mysql80-community-release-el7-1.noarch.rpm--2018-08-04 10:29:39-- https://repo.mysql.com//mysql80-community-release-el7-1.noarch.rpmResolving repo.mysql.com (repo.mysql.com)... 23.219.33.198Connecting to repo.mysql.com (repo.mysql.com)|23.219.33.198|:443... connected.HTTP request sent, awaiting response... 200 OKLength: 25820 (25K) [application/x-redhat-package-manager]Saving to: ‘mysql80-community-release-el7-1.noarch.rpm'100%[==========================================================================>] 25,820 112KB/s in 0.2s 2018-08-04 10:29:40 (112 KB/s) - ‘mysql80-community-release-el7-1.noarch.rpm' saved [25820/25820][root@VM_0_10_centos mysql]# lltotal 28-rw-r--r-- 1 root root 25820 Apr 18 13:24 mysql80-community-release-el7-1.noarch.rpm[root@VM_0_10_centos mysql]# |
•安装mysql源
[root@VM_0_10_centos mysql]# yum -y localinstall mysql80-community-release-el7-1.noarch.rpm |