我试图在php中连接到mongodb。 如果mongodb在shell中启动,使用mongod命令就没有问题。 new Mongo("mongodb://".$_host.":".$_port,true)
但是,当我开始的MongoDB服务器作为服务,我可以用蒙戈命令连接,但我不能在PHP连接。 new Mongo("mongodb://".$_host.":".$_port,true)
我正在运行从mongodb获取数据的php脚本。我有一个非常庞大的数据库,我得到这个例外..my MongoDB的版本是1.6.5 PHP Fatal error: Uncaught exception 'MongoCursorTimeoutException'
with message 'cursor timed out
(timeout: 30000, time left: 0:0, st
我正在开发一个使用PHP和mongodb的网站。我用PECL-mongo访问了mongodb,并且遇到了麻烦。时不时地,我得到这样一个错误(我匿名路径) Fatal error: Uncaught exception 'MongoCursorException' with message 'couldn't get response header' in
/PATH/index.php: