xampp遇到php_pdo_mysql.dll冲突问题

今天在xampp下跑zendframe框架 链接数据库,遇到这样一个问题

当用php_pdo_mysql.dll扩展库链接数据库,发现IE页面突然出错自动关闭

点击调试 出现信息如下

szAppVer : 2.2.11.0  szModName : php_pdo_mysql.dll
szModVer : 5.2.8.8 offset : 0000250a

后来google后发现有一些老外也遇到了和我一样的问题如下:

Error details from Microsoft:
- szAppName : apache.exe
- szAppVer : 2.2.11.0
- szModName : php_pdo_mysql.dll
- szModVer : 5.2.8.8
- offset : 0000250a

Files reported:
C:/DOCUME~1/User/CONFIG~1/Temp/WER455f.dir01/apache.exe.mdmp
C:/DOCUME~1/User/CONFIG~1/Temp/WER455f.dir01/appcompat.txt

Notes:
- Windows XP
- Xampp version 1.7.0
- xampp/php/php5.ini: "extension=php_pdo_mysql.dll" enabled. "extension=php_pdo.dll" enabled

 

解决方法1

Go to the directory "/xampp/mysql/bin" and execute the programm "mysql_update.exe".

进到/xampp/mysql/bin目录下运行mysql_update.exe(若无则运行mysql_upgrate.exe)

解决方法2

下载一个最新的libmysql.dll扩展库

英文原文如下

After downloading 1.7 for windows, I found that any php programs using PDO crashed apache. Here's the fix, which I found on the german language xampp board here: http://www.apachefriends.org/f/viewtopic.php?f=4&t=32587

download this: http://windows.php.net/downloads/snaps/php-5.2-win32-VC6-x86-latest.zip

unzip, then copy libmysql.dll into xampp/apache/bin and xampp/php. Restart apache and you should be good.
将下载下来的 php-5.2-win32-VC6-x86-latest.zip 解压取出其中中的libmysql.dll 扩展库 拷贝到 xampp/apache/bin 和xampp/php目录下去覆盖原文件,重新启动apache ok!
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值