dou4624 2015-08-30 19:08
浏览 92
已采纳

php驱动程序mongodb,从未加载过

I have installed MongoDB, wamp server and I have added a collection in MongoDB

I then downloaded the php_mongo-1.6.8.zip from S3 -> OK

There are many files in the zip file, but which one is the one I need? (Window 10 64 bit)

I found my php.ini location from phpinfo() in C:\wamp\bin\apache\apache2.4.9\bin\php.ini and I inserted this string in extension=php_mongo.dll. In c:/wamp/bin/php/php5.5.12/ext/ copy (for test) the php_mongo-1.6.8-5.6-vc11.dll (renamed in php_mongo.dll).

I can restart apache without errors and call mongo.php in my host

echo extension_loaded("mongo") ? "mongo loaded
" : "mongo not loaded
";
echo "<br>";
echo extension_loaded("mysql") ? " mysql loaded
" : " mysql not loaded
";

This is the print:

mongo not loaded

mysql loaded

Why isn't the mongo driver loading?

  • 写回答

2条回答 默认 最新

  • duansha6410 2015-08-31 07:40
    关注

    the problem is the API compile version. With the version 1.4.5 mongodb driver now all work fine.

    the correct driver for my Window 10 64 bit and Wamp64bit is php_mongo-1.4.5-5.5-vc11-x86_64.dll

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器