Http://dev.mysql.com/doc/refman/5.5/en/installing-source-distribution.html
Reference MySQL official tutorial
Stress Testing http://blog.csdn.net/pengyouchuan/archive/2010/12/18/6084007.aspx for MySQL with supersmack test records after installation
The installation of mysql5.5 source code is different from the previous 5.1. 5.1 uses autotool for compilation, and 5.5 uses cmake for compilation.
Install cmake
Http://www.cmake.org/cmake/resources/software.html
Download the source code package, install cmake in the same way as other installation methods, decompress, configure, compile, and install
Follow the MySQL official documentation to complete the process smoothly. Install the database based on your datadir, under my/home/MySQL/Data
# Preconfiguration setup
shell> groupadd mysql
shell> useradd -r -g mysql mysql
# Beginning of source-build specific instructions
shell> tar zxvf mysql-VERSION
.tar.gz
shell> cd mysql-VERSION
shell> cmake .
shell> make
shell> make install
# End of source-build specific instructions
# Postinstallation setup
shell> cd /usr/local/mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data
# Next command is optional
shell> cp support-files/my-medium.cnf /etc/my.cnf
shell> bin/mysqld_safe --user=mysql &
# Next command is optional
shell> cp support-files/mysql.server /etc/init.d/mysqld
shell> chkconfig --add mysqld
shell> chkconfig --level 2345 mysqld on
shell> service mysqld start