新聞中心
本文主要向大家描述的是在Ubuntu操作系統(tǒng)對MySQL數(shù)據(jù)庫進行正確安裝的實際操作步驟,假如你對安裝MySQL數(shù)據(jù)庫實際操作有興趣了解的話,以下的文章將會滿足你這一好奇之心,以下就是具體內(nèi)容的描述。

成都創(chuàng)新互聯(lián)專注于婁煩企業(yè)網(wǎng)站建設(shè),響應(yīng)式網(wǎng)站設(shè)計,商城網(wǎng)站建設(shè)。婁煩網(wǎng)站建設(shè)公司,為婁煩等地區(qū)提供建站服務(wù)。全流程定制網(wǎng)站制作,專業(yè)設(shè)計,全程項目跟蹤,成都創(chuàng)新互聯(lián)專業(yè)和態(tài)度為您提供的服務(wù)
安裝版本MySQL(和PHP搭配之最佳組合)-5.0.40 需編譯
下載編譯需要的一些工具,這些工具在默認安裝的ubuntu上可能沒有,需要手動安裝
- sudo apt-get install g++ gcc make automake perl
安裝好所有需要的工具
下載需要的libncurses5-dev、kdelibs_dev 和 kdelib
- sudo apt-get update
- apt-get install build-essential
- sudo apt-get install libncurses5-dev
- sudo apt-get install kdelibs4-dev
- sudo apt-get install kdelibs4c2a
安裝MySQL數(shù)據(jù)庫,使用root權(quán)限
shell> groupadd MySQL(和PHP搭配之最佳組合)
shell> useradd -g MySQL(和PHP搭配之最佳組合) MySQL(和PHP搭配之最佳組合)
shell> gunzip < MySQL(和PHP搭配之最佳組合)-VERSION.tar.gz | tar -xvf -
shell> cd MySQL(和PHP搭配之最佳組合)-VERSION
shell> ./configure ——prefix=/usr/local/MySQL(和PHP搭配之最佳組合)
- shell> make
- shell> make install
- shell> cp support-files/my-medium.cnf /etc/my.cnf
shell> cd /usr/local/MySQL(和PHP搭配之最佳組合)
shell> chown -R MySQL(和PHP搭配之最佳組合) .
shell> chgrp -R MySQL(和PHP搭配之最佳組合) .
shell> bin/MySQL(和PHP搭配之最佳組合)_install_db ——user=MySQL(和PHP搭配之最佳組合)
- shell> chown -R root .
shell> chown -R MySQL(和PHP搭配之最佳組合) var
shell> bin/MySQL(和PHP搭配之最佳組合)d_safe ——user=MySQL(和PHP搭配之最佳組合) &
以上的相關(guān)內(nèi)容就是對Ubuntu操作系統(tǒng)下安裝MySQL數(shù)據(jù)庫的方法的介紹,望你能有所收獲。
當(dāng)前題目:巧妙安裝MySQL數(shù)據(jù)庫在Ubuntu操作系統(tǒng)中
文章分享:http://m.fisionsoft.com.cn/article/cceoeho.html


咨詢
建站咨詢
