下载MySQL-5.1.60-linux-x86_64-glibc23.tar.gz放到/home/a/soft/下
shell>sudo groupadd mysql
shell>sudo useradd -r -g mysql mysql
shell>cd /home/a/soft/
shell>tar zxvf mysql-5.1.60-linux-x86_64-glibc23.tar.gz
shell>cd /usr/local/
shell>sudo ln -s /home/a/soft/mysql-5.1.60-linux-x86_64-glibc23 mysql
shell> cd mysql
shell>sudo chown -R mysql .
shell>sudo chgrp -R mysql .
shell>sudo scripts/mysql_install_db --user=mysql
shell>sudo chown -R root .
shell>sudo chown -R mysql data
# Next command is optional
shell>sudo cp support-files/my-medium.cnf /etc/my.cnf
shell>sudo bin/mysqld_safe --user=mysql &
# Next command is optional
shell>sudo cp support-files/mysql.server /etc/init.d/mysql.server
$sudo service mysql.server start