mysql-5.0.22.tar.gz 源码包的安装方法:

 
#groupadd mysql
#useradd -g mysql mysql
#tar -zxvf mysql-5.0.22.tar.gz
#cd mysql-5.0.22
#./configure --prefix=/usr/local/mysql
#make
#make install
#cp support-files/my-medium.cnf /etc/my.cnf
#cp support-files/mysql.server /etc/init.d/mysqld
#chmod 755 /etc/init.d/mysqld
#cd /usr/local/mysql
#chown -R mysql.mysql .
#./bin/mysql_install_db --user=mysql
#chown -R root .
#chown -R mysql var
#service mysqld start