linux下安装php的mysql扩展需要先安装mysql
1、下载相关源码:
mysql-5.6.4:wget http://edong.onlinedown.net/down/mysql-5.6.4-m7.tar.zip
wget http://down1.chinaunix.net/distfiles/cmake-2.8.10.2.tar.gz
2、安装cmake:
tar zxvf cmake-2.8.10.2.tar.gz
mkdir ../cmake_exe
cd ~/software/lamp/cmake-2.8.10.2/
./configure --prefix=/home/wcitywap/cmake_exe
make
make install
3、安装mysql:
unzip mysql-5.6.4-m7.tar.zip
tar -zxvf mysql-5.6.4-m7.tar.gz