1、删除centos系统自带的mariadb数据库防止发生冲突
rpm -qa |grep mariadbrpm -e mariadb-libs --nodeps
2、安装文件准备
# 下载mysql-5.7.25wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.25-linux-glibc2.12-x86_64.tar.gz# 下载boost-1.59.0wget https://sourceforge.net/projects/boost/files/boost/1.59.0/boost_1_59_0.tar.gz
3、安装相关依赖
yum -y install gcc gcc-devel gcc-c++ gcc-c++-devel autoconf* automake* zlib* libxml*ncurses-devel ncurses libgcrypt* libtool* cmake openssl openssl-devel bisonbison-devel perl-Data-Dumper boost boost-doc boost-devel
1