Ubuntu 编译安装LNMP (二) 安装mysql
安装 : ①安装依赖 sudo apt install gcc g++ libxml2 libxml2-dev libssl-dev curl libcurl4-openssl-dev libgd-dev sudo apt install numactl sudo apt install libaio-dev sudo apt install cmake 注意: MySQL8.0需要用gcc的版本为 5.3以上 ②下载源码 源码包分为带boost版和不带boost版的,方便起见直接下载带boost的。 wget https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-boost-8.0.16.tar.gz tar xzv -f mysql-boost-8.0.16.tar.gz cd mysql-8.0.16 ③编译安装 cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/usr/local/mysql/data -DWITH_BOOST=boost -DFORCE_INSOURCE_BUILD=ON make && make install 如报错: c++: Internal error: Killed (program cc1plus) Please