#wget http://mirrors.sohu.com/mysql/MySQL-5.6/mysql-5.6.21.tar.gz #yum -y install gcc gcc-c++ gcc-g77 autoconf automake zlib* fiex* libxml* ncurses-devel libmcrypt* libtool-ltdl-devel* make cmake #yum install bison #unzip gmock-1.6.0.zip -d mysql-5.6.21/source_downloads/ #make #make install #../scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data #/usr/local/mysql/bin/mysqladmin -u root password '' #iptables -A INPUT -i em1 -p tcp -m tcp -dport 3307 -j ACCEPT
googlemock was not found
需要下载gmock 文件解压到程序目录里
unzip gmock-1.6.0.zip -d mysql-5.6.19/source_downloads