CentOS7.2虛擬機器上安裝MySQL 5.7.14

來源:互聯網
上載者:User

標籤:迅雷下載   虛擬機器   blank   mysql   target   

1、MySQL 5.6.32 64位安裝包下載

在官網http://dev.mysql.com/downloads/mysql/中使用wget或迅雷下載MySQL 5.7.14 64位安裝包:

mysql分為開發版本和穩定版本(GA),開發版本擁有最新的特性,但是並不穩定,也沒有完全經過測試,可能存在嚴重的bug,而穩定版本是經過了長時間的測試,消除了具有已知的bug,其穩定性和安全性都得到一定的保障。

對於一個mysql的版本號碼如:mysql-5.6.1-m1,這個版本號碼意味著什麼呢?
1.對於5.6.1的解釋:第一個數字5代表了檔案格式,第二個數字6代表了發行層級,第三個數字1代表了版本號碼。更新幅度較小時,最後的數字會增加,出現了重大特性更新時,第二個數字會增加,檔案格式改變時,第一個數字會增加.
2.對於m1的解釋:這是用來表明這個mysql版本的穩定性層級的,如果沒有這個尾碼,那麼這個版本就是一個穩定版(GA);如果這個尾碼是mN(例如m1,m2)格式,表明了這個版本加入了一些經過徹底測試的新特性,可以認為這是一個試生產的模具;如果這個尾碼是rc,表明了這是一個候選版本,已經修改了已知的重要bug,但是沒有經過足夠長時間的使用來確認所有的bug已經被修複。

650) this.width=650;" title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; padding-right: 0px" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M02/86/A9/wKiom1fGrMTQGIFnAADipURCl2U743.png" "946" height="502" />

650) this.width=650;" title="image" style="border-right- 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; padding-right: 0px; border-top-width: 0px" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M00/86/95/wKioL1fEWd6xPYbjAABRxMhCHes013.png" width="669" height="371" />

(http://cdn.mysql.com//Downloads/MySQL-5.6/MySQL-5.6.32-1.linux_glibc2.5.x86_64.rpm-bundle.tar

http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.14-linux-glibc2.5-x86_64.tar)

2、下載源版本。

使用命令:

cd /etc/local/src

wget http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.14-linux-glibc2.5-x86_64.tar

使用迅雷下載的檔案可以通過SecureFX傳遞到/usr/local/src/目錄中(虛擬機器主機CentOS7.2的IP為:192.168.1.11)

650) this.width=650;" title="image" style="border-right- 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; padding-right: 0px; border-top-width: 0px" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M01/86/95/wKioL1fEWd-Qqdm3AAFpIO9ORQw062.png" width="913" height="705" />

驗證下載的檔案是否完整

[[email protected] src]# md5sum mysql-boost-5.7.14.tar.gz
f90464874ee635ff63c436d1b64fe311  mysql-boost-5.7.14.tar.gz
[[email protected] src]# md5sum mysql-5.7.14-linux-glibc2.5-x86_64.tar
1fdd5e78d64aa60b0425eaa0774dd212  mysql-5.7.14-linux-glibc2.5-x86_64.tar

3、解壓檔案.

cd /usr/local/src/

[[email protected] src]# tar xvf MySQL-5.6.32-1.linux_glibc2.5.x86_64.rpm-bundle.tar
MySQL-shared-compat-5.6.32-1.linux_glibc2.5.x86_64.rpm
MySQL-client-5.6.32-1.linux_glibc2.5.x86_64.rpm
MySQL-shared-5.6.32-1.linux_glibc2.5.x86_64.rpm
MySQL-server-5.6.32-1.linux_glibc2.5.x86_64.rpm
MySQL-devel-5.6.32-1.linux_glibc2.5.x86_64.rpm
MySQL-test-5.6.32-1.linux_glibc2.5.x86_64.rpm
MySQL-embedded-5.6.32-1.linux_glibc2.5.x86_64.rpm

4、查看系統是否安裝了MySQL,使用命令:

[[email protected] src]# rpm -qa | grep mysql
mysql-connector-odbc-5.2.5-6.el7.x86_64

卸載已安裝的MySQL,卸載mysql命令如下:

[[email protected] src]# rpm -e --nodeps mysql-connector-odbc-5.2.5-6.el7.x86_64

將/var/lib/mysql檔案夾下的所有檔案都刪除乾淨。

5、使用如下命令安裝Server和Client:

[[email protected] src]# rpm -ivh MySQL-server-5.6.32-1.linux_glibc2.5.x86_64.rpm

[[email protected] src]# rpm -ivh MySQL-client-5.6.32-1.linux_glibc2.5.x86_64.rpm

6、使用如下命令查看當前mysql的狀態:

CentOS7.2虛擬機器上安裝MySQL 5.7.14

聯繫我們

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