下载并安装cmake

#tar zxf cmake-2.8.5.tar.gz  
#cd cmake-2.8.5  
#./bootstrap  
#make  
#make install  
 
 
 
下载并安装mysql5.5
#useradd mysql
#tar zxvf mysql-5.5.15.tar.gz
#cd mysql-5.5.15
#CFLAGS="-O3" CXX=gcc 
#CXXFLAGS="-O3 -felide-constructors -fno-exceptions -fno-rtti" 
#cmake . -LH|more //CMake下查看MySQL的编译配置
#cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql5 -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci
#make -j 8
#make install
 
#cp support-files/my-medium.cnf /etc/my.cnf

#cd /usr/local/mysql

#scripts/mysql_install_db --user=mysql

#chown -R root .

#chgrp -R mysql .

#chown -R mysql:mysql data/

#bin/mysqld_safe --user=mysql  &

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

# chmod 755 /etc/init.d/mysqld