mysql 5.7.11 源码安装
mysql5.711安装
1.安装boost包
下载地址http://sourceforge.net/projects/boost/files/boost/
2.解压boost_1_59_0.tar.gz
cp -a boost_1_59_0 /usr/local/boost
3.cmake编译(要在源码目录下面执行cmake命令)
cmake -DCMAKE_INSTALL_PREFIX=/exapp/mysql -DMYSQL_UNIX_ADDR=/exapp/mysql/mysql.sock -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DMYSQL_DATADIR=/exapp/mysql/data -DMYSQL_TCP_PORT=3306 -DWITH_BOOST=/usr/local/boost
4.make && make install