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

來源:互聯網
上載者:User

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

1、MySQL 5.6.32 64位安裝包下載

在官網http://dev.mysql.com/downloads/mysql/5.6.html#中使用迅雷下載MySQL 5.6.32 64位安裝包下載:

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/M00/86/95/wKioL1fEWd6xPYbjAABRxMhCHes013.png" "669" height="371" />

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

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

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/M01/86/95/wKioL1fEWd-Qqdm3AAFpIO9ORQw062.png" "913" height="705" />

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.6.32

聯繫我們

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