**************************************************************************************************
MySQL 5.7 编译过程
**************************************************************************************************
1.安装依赖包
yum -y install gcc gcc-c++ ncurses ncurses-devel cmake
2.编译安装MySQL
tar -xzvf boost_1_59_0.tar.gz -C /usr/local/
mv /usr/local/boost_1_59_0 /usr/local/boost
tar -xzvf mysql-5.7.20.tar.gz
cd mysql-5.7.20/
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql-5.7 \
-DMYSQL_UNIX_ADDR=/usr/local/mysql-5.7/mysql.sock \
-DMYSQL_DATADIR=/usr/local/mysql-5.7/data \
-DWITH_BOOST=/usr/local/boost \
-DEXTRA_CHARSETS=all \
-DDEFAULT_CHARSET=utf8 \
-DDEFAULT_COLLATION=utf8_general_ci \
-DWITH_MYISAM_STORAGE_ENGINE=1 \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DWITH_MEMORY_STORAGE_ENGINE=1 \
-DWITH_READLINE=1 \
-DENABLED_LOCAL_INFILE=1 \
-DMYSQL_USER=mysql \
-DMYSQL_TCP_PORT=3306 \
-DDOWNLOAD_BOOST=1
make && make install
原文地址:https://www.cnblogs.com/LyShark/p/9062787.html