一、部署安装MySQL
注:在安装MySQL前需要卸载掉当前已有的mariadb,然后需要安装gcc环境
1、安装cmake
[root@mysql ~]# wget https://github.com/Kitware/CMake/archive/v3.16.4.tar.gz # 下载cmake
[root@mysql ~]# yum -y install openssl-devel # 有时候安装cmake的时候会报错,一般就是openssl这个依赖包没有装
[root@mysql ~]# tar zxf cmake-3.16.4.tar.gz
[root@mysql ~]# cd cmake-3.16.4/
[root@mysql cmake-3.16.4]# ./bootstrap
[root@mysql cmake-3.16.4]# gmake && gmake install
2、安装ncurses
[root@mysql ~]# wget ftp://ftp.gnu.org/gnu/ncurses/ncurses-5.9.tar.gz
[root@mysql cmake-3.16.4]# cd ..
[root@mysql ~]# tar zxf ncurses-5.9.tar.gz
[root@mysql ~]# cd ncurses-5.9/
[root@mysql ncurses-5.9]# ./configure && make && make install
3、安装bison
[root@mysql ~]# wget http://ftp.gnu.org/gnu/bison/bison-3.1.tar.gz