MySQL5.5 after the source installation to use CMake
1.3 Installing the relevant package (CMake)
1.3.1 CMake Software
cd/home/public/tools/
Tar XF cmake-2.8.8.tar.gz
CD cmake-2.8.8
./configure
#CMake has bootstrapped. Now run Gmake.
Gmake
Gmake Install
Cd.. /
1.3.2 Dependency Packages
Yum Install Ncurses-devel-y
1.4 Starting MySQL Installation
1.4.1 Creating users and Groups
Groupadd MySQL
Useradd mysql-s/sbin/nologin-m-G MySQL
1.4.2 Decompression compiled MySQL
tar zxf mysql-5.5.32.tar.gz
CD mysql-5.5.32
cmake.-dcmake_install_prefix=/usr/local/mysql-5.6.34 \
-dmysql_datadir=/usr/local/mysql-5.6.34/data \
-dmysql_unix_addr=/usr/local/mysql-5.6.34/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 \
-dwith_fast_mutexes=1 \
-dwith_zlib=bundled \
-denabled_local_infile=1 \
-dwith_readline=1 \
-dwith_embedded_server=1 \
-dwith_ssl=bundled \
-dwith_debug=0
make failed: Make clean rm-f CMakeCache.txt
#--Build files has been written to:/home/oldboy/tools/mysql-5.5.32
hints, there are many options to configure at compile time, refer to the end of the appendix or official documents:
make
#[100%] Built target my_safe_process
make install
ln-s/application/mysql-5.5.32//application/mysql
If there is no error in the above operation, the installation of MySQL5.5.32 software CMake mode is successful.
Cp/usr/local/mysql/support-files/my-default.cnf/etc/my.cnf
Write to config file echo ' export path=/usr/local/mysql/bin: $PATH ' >>/etc/profile
Source/etc/profile
Echo $PATH
Authorized Chown-r mysql:mysql/usr/local/mysql/data/
Initialization
/usr/local/mysql/scripts/mysql_install_db--basedir=/usr/local/mysql/--datadir=/usr/local/mysql/data/--user= Mysql
Cp/home/centos3/public/apps/mysql-5.6.34/support-files/mysql.server/etc/init.d/mysqld
Add password:/usr/local/mysql//bin/mysqladmin-u root password ' new-password '
Linux MYSQLL Single Instance source code compilation installation