linux下yum安裝mysql5.6

來源:互聯網
上載者:User

標籤:yum安裝mysql5.6

環境:Rhel6.5  mysql5.6

1.下載mysql的yum源,地址http://dev.mysql.com/downloads/repo/yum/

650) this.width=650;" src="http://s2.51cto.com/wyfs02/M00/79/47/wKiom1aNL96yZE3bAAJ77V-Ibkc700.jpg" title="1.jpg" width="720" height="214" border="0" hspace="0" vspace="0" style="width:720px;height:214px;" alt="wKiom1aNL96yZE3bAAJ77V-Ibkc700.jpg" />

2.上傳到系統/root/目錄下

650) this.width=650;" src="http://s2.51cto.com/wyfs02/M01/79/45/wKioL1aNMIDBlgr4AABeV5FKjkk821.jpg" title="2.jpg" width="720" height="33" border="0" hspace="0" vspace="0" style="width:720px;height:33px;" alt="wKioL1aNMIDBlgr4AABeV5FKjkk821.jpg" />

3.rpm安裝

rpm -ivh mysql57-community-release-el6-7.noarch.rpm

4.修改mysql的yum源

650) this.width=650;" src="http://s1.51cto.com/wyfs02/M00/79/46/wKioL1aNMRej5cq-AADUvkv4QKc768.jpg" title="3.jpg" alt="wKioL1aNMRej5cq-AADUvkv4QKc768.jpg" />

vim mysql-community.repo

650) this.width=650;" src="http://s5.51cto.com/wyfs02/M00/79/47/wKiom1aNMVehbqDaAAAmI-nEOsM925.png" title="5.png" alt="wKiom1aNMVehbqDaAAAmI-nEOsM925.png" />

注:enable=0表示禁用,由於安裝5.6的版本,需要將下面的5.7版本中的enable修改為0

5.yum安裝

yum install -y mysql-community-server

注:此步驟操作前確認系統中沒有安裝mysql

6.啟動服務

service mysqld start

至此,安裝完成!

本文出自 “經驗來自痛苦” 部落格,謝絕轉載!

linux下yum安裝mysql5.6

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.