MySQL 5.5.x系列的源码安装采用了cmake进行安装,cmake的详细介绍见:http://baike.baidu.com/view/1126160.htm#sub1126160
在Ubuntu Server下的安装步骤如下:
apt-get -y install gcc g++ chkconfig apt-get -y install libncurses5-dev apt-get -y install cmake cmake . make make install cd support-files cp my-medium.cnf /etc/my.cnf groupadd mysql useradd -g mysql mysql cd /usr/local/mysql chown -R mysql . scripts/mysql_install_db --user=mysql chown -R root . chown -R mysql data bin/mysqld_safe --user=mysql & bin/mysqladmin -u root password 'newpassword';