MySQL starting from 5.5, the source code installation is not using configure, but instead to CMake, so, install MySQL is required to install CMake first
RPM-IVH cmake-2.6.4-7.el5.i386.rpm
Prepare before installation
Groupadd MySQL
useradd-g MySQL MySQL
Mkdir/usr/local/mysql
Chown mysql.mysql/usr/local/mysql/-R
Mkdir-pv/usr/local/mysql/data
Yum Remove mysql-server MySQL mysql-devel-y
Yum install gcc gcc-c++ ncurses-devel libtool openssl-devel-y
Tar zxf mysql-5.5.29.tar.gz
CD mysql-5.5.29
Compiling the installation
CMake. -dcmake_install_prefix=/usr/local/mysql-dmysql_datadir=/usr/local/mysql/data/-DMYSQL_UNIX_ADDR=/usr/local/ Mysql/mysql.sock-dwith_innodbbase_storage_engine=1-dextra_charsets=all-ddefault_charset=utf8
Make
Make install
Note:
Like CMake and configure, you can add the required parameters at compile time, with the following syntax: