groupadd mysql4 useradd -m -d /usr/local/mysql4 -s /bin/false -g mysql4 mysql4 apt-get install build-essential libncurses5-dev
wget http://ftp.gwdg.de/pub/linux/mysql/Downloads/MySQL-4.1/mysql-4.1.22.tar.gz tar xvfz mysql-4.1.22.tar.gz cd mysql-4.1.22
./configure --prefix=/usr/local/mysql4 \ --with-vio \ --with-openssl-prefix=/usr/local/ssl \ --with-unix-socket-path=/usr/local/mysql4/var/mysqld.sock \ --with-mysqld-user=mysql4 \ --with-server-suffix=mysql4 \ --with-tcp-port=3307
make && make install /usr/local/mysql4/bin/mysql_install_db cp /usr/local/mysql4/share/mysql/mysql.server /etc/init.d/mysql4 cp /usr/local/mysql4/share/mysql/my-medium.cnf /usr/local/mysql4/var/my.cnf chown -R mysql4:mysql4 /usr/local/mysql4
/etc/init.d/mysql4 start