安装PHP5的pdo_mysql模块
wget http://pecl.php.net/get/PDO_MySQL-1.0.2.tgz
tar xzvf PDO_MySQL-1.0.2.tgz
cd PDO_MySQL-1.0.2注释掉configure里头判断是否已经安装pdo扩展的代码片段,继续跑:
phpize
./configure
make
make install
注:如果执行phpize提示
-bash: phpize: command not found
请先声明一下PHP5的执行路径,如下:
export PATH=$PATH:/usr/loca/php5/bin
然后再次添加下面一行到/usr/local/etc/php/php.ini
extension=pdo_MySQL.so
重启httpd即可。
You’re so right.
Hope. So difficult.But a must.
Every day for me is a sacred time that I come here, and I read all the comments.
Thanks for the laugh, I needed it!
Thank you for your kind words