原来编译php的时候,没有把dpo_mysql相关的参数带上,安装完后才发现。再重新编译有点费时间,所以决定单独来安装。
一、下载相应tgz包;
wget http://pecl.php.net/get/PDO_MYSQL-1.0.2.tgz
二、安装开始;
[root@cms-test software]# tar zxvf PDO_MYSQL-1.0.2.tgz
[root@icms-test software]# cd PDO_MYSQL-1.0.2
[root@cms-test PDO_MYSQL-1.0.2]# /usr/local/php/bin/phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
1、[root@cms-test PDO_MYSQL-1.0.2]#./configure –with-php-config=/usr/local/php/bin/php-config
2、[root@cms-test PDO_MYSQL-1.0.2]#make
3、[root@cms-test PDO_MYSQL-1.0.2]#make install
三、修改php.ini;
extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/"
extension = "pdo_mysql.so"
重启apache,搞定!!!!!!!!!