今天在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扩展库
英文原文如下
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.