解決centos下yum install mysql-server沒有可用包

來源:互聯網
上載者:User

解決centos下yum install mysql-server沒有可用包

# 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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.