#groupadd mysql 
#useradd -g mysql mysql
#gzip -dc mysql.tar.gz | tar xvf -
#cd mysql
#./configure --prefix=/usr/local/mysql \
--without-debug \
--with-extra-charsets=gb2312 \
--enable-assembler \
--without-innodb \
--with-pthread \
--enable-thread-safe-client \
--with-client-ldflags=-all-static \
--with-mysqld-ldflags=-all-static
#make
#make install
#/usr/local/mysql/lscripts/mysql_install_db
#cp /usr/local/mysql/support-files/my-medium.cnf /etc/my.cnf 
#chgrp mysql /etc/my.cnf
#/usr/local/mysql/bin/safe_mysqld --user=mysql &
#/usr/local/mysql/bin/mysqladmin -u root password '123456'印象中是这样。