首页 > PHP > 安装PHP5的pdo_mysql模块

安装PHP5的pdo_mysql模块

2009年03月22号
查看评论 发表评论 1,250次浏览

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即可。

类别PHP 标签
  1. MBT VOI Shoes
    发表于 2010年06月23号 05时55分39秒 | 1楼

    You’re so right.

  2. mbt shoes sale
    发表于 2010年06月30号 15时40分02秒 | 2楼

    Hope. So difficult.But a must.

  3. designer bangles
    发表于 2010年07月09号 15时14分44秒 | 3楼

    Every day for me is a sacred time that I come here, and I read all the comments.

  4. herve leger dress
    发表于 2010年07月09号 17时00分05秒 | 4楼

    Thanks for the laugh, I needed it!

  5. cheap kobe bryant jersey
    发表于 2010年07月21号 15时33分32秒 | 5楼

    Thank you for your kind words

  1. 目前没有通告
你必需 登陆 才能发表评论.