[[email protected] ~]# yum install ncurses-devel libaio-devel -y
[[email protected] cmake-3.6.1]# tar -xf cmake-3.6.1.tar.gz [[email protected] cmake-3.6.1]# cd cmake-3.6.1 [[email protected] cmake-3.6.1]# gmake [[email protected] cmake-3.6.1]# gmake install [[email protected] cmake-3.6.1]# which cmake /usr/local/bin/cmake
[[email protected] tools]# cd mysql-5.5.49
[[email protected] mysql-5.5.49]# useradd -s /sbin/nologin -M mysql
[[email protected] mysql-5.5.49]# id mysql
uid=500(mysql) gid=500(mysql) groups=500(mysql)
[[email protected] mysql-5.5.49]# ./configure cmake . -DCMAKE_INSTALL_PREFIX=/application/mysql-5.5.49 -DMYSQL_DATADIR=/application/mysql-5.5.49/data -DMYSQL_UNIX_ADDR=/application/mysql-5.5.49/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 [[email protected] mysql-5.5.49]# make [[email protected] mysql-5.5.49]# make install
时间: 2024-10-03 13:13:21