centos 安装MySQL全过程
tar zxvf mysql-5.0.75.tar.gz??cd mysql-5.0.75?./configure --prefix=/usr/local/mysql --with-charset=utf8 --with-extra-charsets=all --with-unix-socket-path=/usr/local/mysql/var/mysql.sock --with-named-curses-libs=/usr/lib/libncursesw.somakemake installuseradd mysql -d /data/mysql -s /sbin/nologin/usr/local/mysql/bin/mysql_install_db --user=mysql --basedir=/usr/local/mysqlcd /usr/local/mysqlchown -R root:mysql .chown -R mysql /data/mysql/datacp share/mysql/my-huge.cnf /etc/my.cnfcp share/mysql/mysql.server /etc/rc.d/init.d/mysqldchmod 755 /etc/rc.d/init.d/mysqldchkconfig --add mysqld/etc/rc.d/init.d/mysqld startcd /usr/local/mysql/binfor i in *; do ln -s /usr/local/mysql/bin/$i /usr/bin/$i; done