
例:安装mysql 4.1.21
# groupadd mysql
# useradd -g mysql mysql
# tar -zxvf mysql-4.1.21.tar.gz
# cd mysql-4.1.21
# ./configure --prefix=/usr/local/mysql --with-charset=gbk
# make
# make install
# cp support-files/my-medium.cnf /etc/my.cnf
设置自启动
# cp support-files/mysql.server /etc/rc.d/init.d/mysqld
# chmod 700 /etc/rc.d/init.d/mysqld
# chkconfig --add mysqld(关于chkcon...