mongodb rockmongo

config修改如下:

$MONGO["servers"][$i]["mongo_auth"] = true;//enable mongo authentication?
 
$MONGO["servers"][$i]["control_auth"] = true;//enable control users, works only if mongo_auth=false

字段过长报错Cannot natively represent the long 1396367483000 on this platform

添加

ini_set('mongo.long_as_object', 1);

PHP安装mongo扩展:

https://pecl.php.net/package/mongo

猜你喜欢

转载自www.cnblogs.com/BeautyFuture/p/9287170.html