新聞中心
以下的文章主要介紹的是在Ubuntu操作系統(tǒng)之下正確安裝MySQL數(shù)據(jù)庫(kù)的實(shí)際操作方法,我們是在版本MySQL(與PHP搭配之最佳組合)-5.0.40 版本之下安裝的,需需要編譯,下載編譯需要的一些工具。

這些工具在默認(rèn)安裝的ubuntu上可能沒(méi)有,需要手動(dòng)安裝
- 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ù)庫(kù)(和PHP搭配之最佳組合),使用root權(quán)限
shell> groupadd MySQL(和PHP搭配之最佳組合)
shell> useradd -g MySQL(和PHP搭配之最佳組合) MySQL數(shù)據(jù)庫(kù)(和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數(shù)據(jù)庫(kù)(和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數(shù)據(jù)庫(kù)(和PHP搭配之最佳組合) &
【編輯推薦】
- MySQL root密碼重置的三步驟
- 對(duì)MySQL 中文亂碼的解決方案的描述
- 查看MySQL連接數(shù)的實(shí)際操作流程
- MySQL數(shù)據(jù)庫(kù)在實(shí)際應(yīng)用一些方面的介紹
- MySQL數(shù)據(jù)庫(kù)日志的文件維護(hù)流程
網(wǎng)頁(yè)題目:MySQL數(shù)據(jù)庫(kù)安裝到Ubuntu的實(shí)際操作
URL鏈接:http://www.dlmjj.cn/article/dpjcsgc.html


咨詢
建站咨詢
