编译安装mysql
# 安装依赖包和开发工具包
[root@yasuo ~]# yum -y install libevent* libtool* autoconf* libstd* ncurse* bison* openssl* gcc gcc-c++ bzip2*
[root@yasuo ~]# yum -y groupinstall "Development Tools"
# 下载cmake编译工具
[root@yasuo ~]# cd /usr/src/
[root@yasuo src]# wget http://www.cmake.org/files/v2.8/cmake-2.8.12.1.tar.gz
# 解压
[root@yasuo src]# tar xf cmake-2.8.12.1.tar.gz
[root@yasuo src]# ls
cmake-2.8.12.1 cmake-2.8.12.1.tar.gz
# 编译安装cmake
[root@yasuo ~]# cd /usr/src/cmake-2.8.12.1
[root@yasuo cmake-2.8.12.1]# ./configure && make && make install
# 编译安装mysql5.7.26
[root@yasuo ~]# cd /usr/src/
[root@yasuo src]# wget http://downloads.mysql.com/archives/get/file/mysql-5.7.26.tar.gz
[root@yasuo src]# ls
cmake-2.8.12.1 cmake-2.8.12.1.tar.gz debug kernels mysql-5.7.26.tar.gz
[root@yasuo src]# tar xf mysql-5.7.26.tar.gz
[root@yasuo src]# cd mysql-5.7.26
[root@yasuo my