#!/bin/bash # boost code path boost_path='/data/boost_code' install_path='/data/servers/mysql-8.0.30' data_path='/data/my_cnf/8030' # using gcc of devtoolset gcc_path='/opt/rh/devtoolset-10/root/bin/gcc' gplus_path='/opt/rh/devtoolset-10/root/bin/g++' rm -rf ./build mkdir ./build cd ./build cmake3 .. -DWITH_BOOST=$boost_path -DCMAKE_INSTALL_PREFIX=$install_path -DDEFAULT_CHARSET=utf8mb4 -DDEFAULTCOLLATION=utf8mb4_bin -DEXTRA_CHARSETS=all -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DENABLED_LOCAL_INFILE=1 -DWITH_PERFSCHEMA_STORAGE_ENGINE=1 -DMYSQL_DATADIR=$data_path -DWITH_DEBUG=1 -DCMAKE_BUILD_TYPE=Debug -DWITHOUT_FEDERATED_STORAGE_ENGINE=1 -DWITHOUT_ARCHIVE_STORAGE_ENGINE=1 -DCMAKE_C_COMPILER=$gcc_path -DCMAKE_CXX_COMPILER=$gplus_path make -j 24 && make install