CMake Tool Installation
Yum Install Cmake-y
Dependency Pack Yum Install ncurses-devel-y
Start installing MySQL
Create users and Groups
Groupadd MySQL
Useradd mysql-s/sbin/nologin-m-G MySQL
Tar zxf mysql-5.5.32.tar.gz
CD mysql-5.5.32
CMake. -dcmake_install_prefix=/application/mysql-5.5.32 \
-dmysql_datadir=/application/mysql-5.5.32/data \
-dmysql_unix_addr=/application/mysql-5.5.32/tmp/mysql.sock \
-ddefault_charset=utf8 \
-DDEFAULT_COLLATION=UTF8_GENERAL_CI \
-DEXTRA_CHARSETS=GBK,GB2312,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 \
-dwith_embedded_server=1 \
-dwith_debug=0
Make && make install
Ln-s/application/mysql-5.5.32//application/mysql
Echo ' Export path=/application/mysql/bin: $PATH ' >>/etc/profile
Source/etc/profile
Cp/application/mysql/support-files/my-small.cnf/etc/my.cnf
Chown-r mysql.mysql/application/mysql/data/
Chown-r 1777/tmp/
cd/application/mysql/scripts/
chmod +x mysql_install_db
./mysql_install_db--basedir=/application/mysql/--datadir=/application/mysql/data/--user=mysql
CP Support-files/mysql.server/etc/init.d/mysqld
chmod +x/etc/init.d/mysqld
Netstat-lntup|grep 3306
Mysql
MySQL 5.5.32 source cmake compilation Installation