使用PHP访问MySQL,Apache httpd.exe报错

我的环境是:

apache 2.2.17

php-5.2.17

mysql-5.1.47

按照http://www.php.net/manual/en/install.windows.php步骤配置完成后,访问hello world.php没有问题,但是一旦访问mysql,就会出现Visual Stuido的debugger界面(因为我机器上有Visual Stuido的缘故),提示“an unhandled win32 exception occured in httpd.exe[5248]”,点yes,进去后提示“Unhandled exception at 0x007dacca in httpd.exe: 0xC0000005: Access violation reading location 0x00000014.”

最终的解决办法是将php-5.2.17下的libmysql.dll拷贝到apache的bin目录。这里注意的是,虽然mysql的bin目录也有这个文件,但是copy过去后问题仍然存在,只有把php目录的libmysql.dll copy过去才好使。

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值