我常用的mysql编译语句:

./configure --prefix=/usr/local/mysql   --with-charset=utf8  --with-extra-charsets=all --with-mysqld-user=mysql

---------------------------------------------------------------------

./configure常用编译参数如下:

    --prefix=path     #mysql的安装路径

      --with-charset=utf8     #默认编码集

     --with-extra-charsets=all    #还支持的其它编码集,具体值可以./onfigure --help | grep charset

---------------------------------------------------

 #make && make install

#cp support-files/my-m*.cnf  /etc/my.cnf

 #mysql_install_db --user=mysql

 #chown -R root.mysql /usr/local/mysql/

#chown -R mysql /usr/local/mysq/var/

#echo "/usr/local/mysql/lib/mysql">>/etc/ld.so.conf

#ldconfig

#/usr/local/mysql/bin/mysqld_safe --user=mysql &

#ps -ef  | grep mysql       ---------netstst -ntulp | grep mysql

#cp support-files/mysql.server /etc/init.d/mysqld

#chmod +x /etc/init.d/mysqld

#chkconfig --add mysqld

#chkconfig mysqld on

#chkconfig --level 35 mysqld on

#export PATH=$PATH:/usr/local/mysql/bin设置PATH

#mysqladmin -uroot password  123456