# cd /
# mkdir mysql
# cp mysql.tar.gz /mysql/
# cd /mysql
# tar -zxvf mysql.tar.gz
# cd /mysql
# ./configure --prefix=/mysql --with-charset=gbk --localstatedir=/mysql/data
# make
# make install
# groupadd mysql
# useradd mysql -g mysql
# cd /mysql/bin
# ./mysql_install_db --user=mysql
# cd /mysql
# chown -R root .
# chown -R mysql data
# chown -R mysql data/ .
# chown -R mysql data/mysql/ .
# chgrp -R mysql .
# /mysql/bin/mysqld_safe --user=mysql &
# /mysql/bin/mysql -uroot -p
# cp /mysql/support-files/mysql.server /etc/init.d/mysqld
# cd /etc/init.d/
# chmod +x mysqld
# chkconfig mysqld
# chkconfig --add mysqld
# chkconfig --level 345 mysqld on
# service mysqld stop
# cp /mysql/bin/* /usr/bin/
# mkdir mysql
# cp mysql.tar.gz /mysql/
# cd /mysql
# tar -zxvf mysql.tar.gz
# cd /mysql
# ./configure --prefix=/mysql --with-charset=gbk --localstatedir=/mysql/data
# make
# make install
# groupadd mysql
# useradd mysql -g mysql
# cd /mysql/bin
# ./mysql_install_db --user=mysql
# cd /mysql
# chown -R root .
# chown -R mysql data
# chown -R mysql data/ .
# chown -R mysql data/mysql/ .
# chgrp -R mysql .
# /mysql/bin/mysqld_safe --user=mysql &
# /mysql/bin/mysql -uroot -p
# cp /mysql/support-files/mysql.server /etc/init.d/mysqld
# cd /etc/init.d/
# chmod +x mysqld
# chkconfig mysqld
# chkconfig --add mysqld
# chkconfig --level 345 mysqld on
# service mysqld stop
# cp /mysql/bin/* /usr/bin/