1. Install dependent packages
Yum-y Install Ncurses-devel Libaio-devel
2, download CMake package, unzip, compile
Wget-q https://cmake.org/files/v2.8/cmake-2.8.8.tar.gz TAR-XVF cmake-2.8.8.tar.gzcd cmake-2.8.8./configure
Compile error is generally because there is no installation gcc-c++
Yum-y Install gcc-c++
Gmake && gmake Install
3. Download mysql-5.5.58.tar.gz
TAR-XVF MYSQL-5.5.58.TAR.GZCD mysql-5.5.58
CMake. -dcmake_install_prefix=/application/mysql-5.5.58-dmysql_datadir=/application/mysql-5.5.58/data-dmysql_unix_ Addr=/application/mysql-5.5.58/tmp/mysql.sock-ddefault_charset=utf8-ddefault_collation=utf8_general_ci-dextra_ Charests=gbk,gb2313,utf8,ascii-denabled_local_infile=on-dwith_innobase_storage_engine=1-dwith_federated_ Storage_engine=1-dwith_blackhole_storage_engine=1-dwithout_example_storage_engine=1-dwithout_partition_storage _engine=1-dwith_fast_mutexes=1-dwith_zlib=bundled-denabled_local_infile=1-dwith_readline=1-dwth_embedded_ Server=1-dwith_debug=0
Make && make install
MySQL source package compilation and installation