# wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm ; -- http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm 正在解析主机 repo.mysql.com (repo.mysql.com)... 23.4.241.142 正在连接 repo.mysql.com (repo.mysql.com)|23.4.241.142|:80... 已连接。 已发出 HTTP 请求,正在等待回应... 200 OK 长度:6140 (6.0K) [application/x-redhat-package-manager] 正在保存至: “mysql-community-release-el7-5.noarch.rpm” 100%[======================================>] 6,140 --.-K/s 用时 0s (467 MB/s) - 已保存 “mysql-community-release-el7-5.noarch.rpm” [6140/6140]) # ls mysql-community-release-el7-5.noarch.rpm # rpm -ivh mysql-community-release-el7-5.noarch.rpm 准备中... ################################# [100%] 正在升级/安装... 1:mysql-community-release-el7-5 ################################# [100%] # ls -1 /etc/yum.repos.d/mysql-community* /etc/yum.repos.d/mysql-community.repo /etc/yum.repos.d/mysql-community-source.repo # yum install mysql-server [root@localhost ~]# wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm --2016-06-28 17:43:08-- http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm 正在解析主机 repo.mysql.com (repo.mysql.com)... 184.50.14.132 正在连接 repo.mysql.com (repo.mysql.com)|184.50.14.132|:80... 已连接。 已发出 HTTP 请求,正在等待回应... 200 OK 长度:6140 (6.0K) [application/x-redhat-package-manager] 正在保存至: “mysql-community-release-el7-5.noarch.rpm” 100%[=======================================================================>] 6,140 --.-K/s 用时 0.001s 2016-06-28 17:43:16 (7.45 MB/s) - 已保存 “mysql-community-release-el7-5.noarch.rpm” [6140/6140]) [root@localhost ~]# ls aa bb mysql-community-release-el7-5.noarch.rpm test.txt 公共 视频 文档 音乐 anaconda-ks.cfg cc testcopy.txt txt 模板 图片 下载 桌面 [root@localhost ~]# chmod 777 mysql-community-release-el7-5.noarch.rpm [root@localhost ~]# rpm -ivh mysql-community-release-el7-5.noarch.rpm 准备中... ################################# [100%] 正在升级/安装... 1:mysql-community-release-el7-5 ################################# [100%] [root@localhost ~]# ls -1 /etc/yum.repos.d/mysql-community* /etc/yum.repos.d/mysql-community.repo /etc/yum.repos.d/mysql-community-source.repo
[root@localhost ~]# yum install mysql-server |