如何簡(jiǎn)單安裝MySQL數(shù)據(jù)庫(kù)
雖然安裝MySQL數(shù)據(jù)庫(kù)的文章很多,但是我看后感覺對(duì)于初學(xué)者來(lái)說(shuō)都有一定的難度所以我寫個(gè)簡(jiǎn)單的方法供大家參考。如果有什么不對(duì)的地方請(qǐng)指教。
var isMinNS4 = (navigator.appName.indexOf(Netscape) >= 0 parseFloat(navigator.appVersion) >= 4) ? 1 : 0; var isMinIE4 = (do*****ent.all) ? 1 : 0; var isMinIE5 = (isMinIE4 navigator.appVersion.indexOf(5.)) >= 0 ? 1 : 0; //var FONTSIZE=2 var fs='small'; if (1==2) {fs='big';} if (isMinIE4) do*****ent.write(); if (isMinNS4) do*****ent.write(); 1. 先下載mysql -XXX.tar.gz
2. 解壓: tar zxvf mysql-3.22.32.tar.gz
3. cd mysql -3.22.32
4. 沒定安裝目錄:./configure --prefix=/你的路徑/mysql
5. make
6. make install
7. cd scripts
8. ./mysql_install_db
9. cd /usr/local/mysql/share/mysql/
10. chmod 611 mysql.server
11. cp /usr/local/mysql/scripts/mysql.server /usr/local/mysql/bin
12 ./mysql.server start
13. 用Kwrite打開 /etc/rc.d/rc.local 這個(gè)文件,加入下面這行以便開機(jī)的時(shí)候自動(dòng)執(zhí)行MySQL
/usr/local/mysql/share/mysql/mysql.server start
評(píng)論