容器技术交流

 找回密码
 立即注册
查看: 3356|回复: 5

pdo_mysql 在FAMP下怎么安装 centos系统

[复制链接]
发表于 2009-7-27 07:39:40 | 显示全部楼层 |阅读模式
请教下在centos下如何安装pdo和pdo_mysql

centos5.3+nginx


You need to enable the PDO and PDO_MYSQL extensions in your php.ini file.


On a Linux server you can compile php with the following option --with-pdo-mysql In your php.ini, add the following lines
extension=pdo.so
extension=pdo_mysql.so

[ 本帖最后由 Robin 于 2009-7-27 07:42 编辑 ]
 楼主| 发表于 2009-7-27 07:41:49 | 显示全部楼层
下载 PDO_MySQL-1.0.2.tgz
解压:tar xvf PDO_MySQL-1.0.2.tgz
cd PDO_MySQL-1.0.2

注释掉configure里头判断是否已经安装pdo扩展的代码片段,继续跑:

/usr/local/php/bin/phpize(如果用的是nginx,那么是/usr/local/php-fcgi/phpize)
./configure
make
make install

然后再次添加下面一行到/usr/local/etc/php/php.ini

extension=pdo_MySQL.so

重启httpd即可。


这个是洞洞的一个回复一个帖子的内容,/usr/local/php-fcgi/phpize  这个路劲好像不存在,还有注释点哪些代码呢 ?
 楼主| 发表于 2009-7-27 07:59:05 | 显示全部楼层
已经找到路劲

/usr/local/php-fcgi/bin/phpize

要注释哪些代码呢
发表于 2009-7-27 08:42:18 | 显示全部楼层
应该不用注释吧!
你试一下
这个我没装过
 楼主| 发表于 2009-7-27 08:53:30 | 显示全部楼层
搞定了 ,谢谢
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Archiver|URLOS ( 粤ICP备18087780号 )

GMT+8, 2025-5-8 06:35 , Processed in 0.028002 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表