字體:小 中 大 | |
|
|
2009/05/13 19:09:42瀏覽886|回應0|推薦3 | |
安裝MYSQL #cd /root 1.#echo 0 > /selinux/enforce ==>這是暫時關閉selinux (CentOS 5.2) 如果有xWindow 需在視窗停用功能 2.#rpm -i MySQL-server-4.1.22-0.i386.rpm或#rpm -i MySQL-server-4.1.22-0.glibc23.x86_64.rpm 3.#rpm -i MySQL-client-4.1.22-0.i386.rpm或#rpm -i MySQL-client-4.1.22-0.glibc23.x86_64.rpm 如已安裝過他會顯示安裝的版本請以例如:rpm -e MySQL-server-4.1.22-0.i386 卸載 4.#/usr/bin/mysqladmin -u root password 'xxxxxx' ==>設定mysql 的root 密碼為xxxxxx 5.#/etc/init.d/mysql stop 停止mysql #cp /root/mysql.tar.gz /var/lib #tar -zxvf mysql.tar.gz #/etc/init.d/mysql start 啟動mysql 6.#cd /etc/init.d #chkconfig mysql on ==>開機自動啟動mysql |
|
( 興趣嗜好|電腦3C ) |