How to remove collection named 'group'?
I accidentally created a collection named 'group'. How do I remove it.
When I give the following in the mongo console
db.group.drop()
I get the following error
Fri Jun 7 16:36:39.630 JavaScript execution failed: TypeError: Object function ( parmsObj ){
var ret = this.runCommand( { "group" : this._groupFixParms( parmsObj ) } );
if ( ! ret.ok ){
throw "group command failed: " + tojson( ret );
}
return ret.retval;
} has no method 'drop'
db.getCollection('group').drop()
才行
猜你喜欢
转载自cooler1217.iteye.com/blog/2067993
今日推荐
周排行