1、首先安装cmake:#tar zxf cmake-2.8.5.tar.gz #cd cmake-2.8.5 #./bootstrap #make install。2、然后进行MySQL-5.5.14的编译和安装:useradd mysql;tar zxf mysql-5.5.14.tar.gz;cd mysql-5.5.14;CFLAGS=\"-O3\" CXX=gcc CXXFLAGS=\"-O3 -felide-constructors -fno-exceptions -fno-rtti\" cmake . -LH | more;cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DEXTRA_CHARSETS=all;make install;chown -R mysql:mysql /usr/local/mysql;cp support-files/my-medium.cnf /etc/my.cnf;cd /usr/local/mysql/;./scripts/mysql_install_db --user=mysql;/usr/local/mysql/bin/mysqld_safe --user=mysql &;/usr/local/mysql/bin/mysql。欢迎使用MySQL监视器。输入'help;'或'h'获取帮助。输入'c'清除控制台。