mysql 5.7.10的源码安装:
http://fyduan.blog.51cto.com/4234935/1729873
cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql_57
-DMYSQL_DATADIR=/data/3307/data
-DDOWNLOAD_BOOST=1
-DWITH_BOOST=/usr/local/boost
-DSYSCONFDIR=/data/3307
-DDEFAULT_CHARSET=utf8mb4
-DDEFAULT_COLLATION=utf8mb4_unicode_ci
-DMYSQL_UNIX_ADDR=/data/3307/data/mysql.sock
bin/mysqld --initialize-insecure --user=mysql --basedir=/usr/local/mysql_57 --datadir=/data/3307/data