php查看mysql扩展_PHP没有看到mysql扩展

bd96500e110b49cbb3cd949968f18be7.png

I'm at a loss. I'm on WIndows 7 and have installed both Apache 2.2.21 and PHP 5.2.17. I can not enable the mysql module. Is there a known issue on Windows 7?

I've run php --info and see the following:

C:\php>php --ini

Configuration File (php.ini) Path: C:\WINDOWS

Loaded Configuration File: C:\php\php.ini

Scan for additional .ini files in: (none)

Additional .ini files parsed: (none)

I've also set my extension dir inside php.ini:

extension_dir = "C:\php\ext"

I've also added an entry to my httpd.conf file:

# configure the path to php.ini

PHPIniDir "c:/php"

And yes, inside my php.ini file I've enabled the php_mysql extension and restarted my web server.

What am I missing?

解决方案

Have you tried putting php_mysql.dll in C:\windows\system32 directory? If you place the file there, restart your webserver and the module is loaded, then it could mean an environment variable issue, or an old version of php_mysql.dll is preventing the new one from being loaded properly.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值