mysql编译安装

下载

https://downloads.mysql.com/archives/community/

编译

tar -xf ~/Downloads/mysql-boost-8.0.28.tar.gz  cd mysql-8.0.28/ mkdir build  cd build/ cmake .. -DCMAKE_INSTALL_PREFIX=/home/XXX/install/mysql/mysql-8.0.28 -DMYSQL_DATADIR=/home/XXX/install/mysql/data -DSYSCONFDIR=/home/XXX/install/mysql/cfg -DDEFAULT_CHARSET=utf8 -DWITH_BOOST=/home/XXX/workspace/tmp/mysql-8.0.28/boost make -j40 make install 

启动

参考