# zcat mysql-4.1.22.tar.gz |tar xfv - # cd mysql-4.1.22 # ./configure --prefix=/usr/local/mysql --without-readline [--with-charset=ujis] # make # make install
# adduser mysql -u 103 -d /var/mysql -s /sbin/nologin
# \rm -r /var/mysql/*
# cp support-files/mysql.server /etc/init.d/mysql # chmod a+rx /etc/init.d/mysql
# ln -s ../init.d/mysql /etc/rc5.d/S90mysql
# cp support-files/my-medium.cnf /etc/my.cnf # chown mysql /etc/my.cnf
# vi /etc/init.d/mysql
# cd /usr/local # chmod -R o+r mysql # find mysql -type d |xargs chmod o+x
# /usr/local/mysql/bin/mysql_install_db --user=mysql --ldata=/var/mysql
# \rm -r /var/mysql/* # /usr/local/mysql/bin/mysql_install_db --user=mysql --ldata=/var/mysql
# /etc/init.d/mysql start # ps ax