(六)Linux CenOS6.5 安裝mysql

來源:互聯網
上載者:User

標籤:prim   3.2   解決   inux   32位   oid   problems   mysq   def   

1、首先下載mysql的用戶端和服務端  https://dev.mysql.com/downloads/mysql/

2、安裝命令     rpm -ivh MySQL-server-5.1.73-1.glibc23.i386.rpm

  此處可能會遇到問題:大概十多個報錯

  libc.so.6(GLIBC_2.0)  is needed by MySQL-server-5.1.73-1.glibc23.i386

  libgcc_s.so.1 is needed by MySQL-server-5.1.73-1.glibc23.i386

百度了半天發現了一些資訊

這裡只摘錄關鍵的幾句話:

In Red Hat Enterprise Linux 5, if a package was available for both the main and the compatibility architectures, both architectures of the package were installed by default.In Red Hat Enterprise Linux 6, only the package for the primary architecture is installed by default.To avoid problems during the backup-archive client and API installation on a 64-bit machine, be sure to install libstdc++ and compat-libstdc++.

大意是說,從Red Hat Enterprise Linux 6開始,預設只安裝主架構所需要的包,而不安裝相容架構的包,也就是說,64位系統預設只安裝64位的軟體包。為避免這種問題,在64位系統中,要同時安裝64位的包和32位的相容包。CentOS和從Red Hat Enterprise Linux 6的關係就不用我說了,因此我感覺這個回答比較靠譜,趕緊試試吧。

安裝yum install libstdc++.i686          之後發現只剩一個報錯

libgcc_s.so.1 is needed by MySQL-server-5.1.73-1.glibc23.i386

下載這個libgcc-4.4.7-18.el6.i686.rpm   

 安裝rpm -ivh libgcc-4.4.7-18.el6.i686.rpm 

之後再安裝 rpm -ivh MySQL-server-5.1.73-1.glibc23.i386.rpm

沒有問題,成功安裝

3、安裝用戶端rpm -ivh MySQL-client-5.1.73-1.glibc23.i386.rpm

又遇到問題 libncursesw.so.5 is needed by MySQL-client-5.1.73-1.glibc23.i386

解決方案:  yum list | grep ncurses   

ncurses.x86_64 5.7-3.20090208.el6 @anaconda-CentOS-201311272149.x86_64/6.5
ncurses-base.x86_64 5.7-3.20090208.el6 @anaconda-CentOS-201311272149.x86_64/6.5
ncurses-libs.x86_64 5.7-3.20090208.el6 @anaconda-CentOS-201311272149.x86_64/6.5
ncurses-devel.i686 5.7-3.20090208.el6 c6-media
ncurses-devel.x86_64 5.7-3.20090208.el6 c6-media
ncurses-libs.i686 5.7-3.20090208.el6 c6-media
ncurses-static.x86_64 5.7-3.20090208.el6 c6-media
ncurses-term.x86_64 5.7-3.20090208.el6 c6-media

安裝  yum install ncurses-libs.i686

之後成功安裝用戶端rpm -ivh MySQL-client-5.1.73-1.glibc23.i386.rpm     

 

(六)Linux CenOS6.5 安裝mysql

聯繫我們

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