接源码安装部分,将路径更换,端口更换
cmake . -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/opt/mysql3307/software/mysql-5.7.11/boost -DCMAKE_INSTALL_PREFIX=/opt/mysql3307/software -DMYSQL_DATADIR=/opt/mysql3307/data -DSYSCONFDIR=/opt/mysql3307/software/etc -DWITH_MYISAM_STORAGE_ENGINE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_MEMORY_STORAGE_ENGINE=1 -DWITH_PERFSCHEMA_STORAGE_ENGINE=1 -DWITH_READLINE=1 -DMYSQL_UNIX_ADDR=/mysql3307.sock -DMYSQL_TCP_PORT=3307 -DENABLED_LOCAL_INFILE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DEXTRA_CHARSETS=all -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci