mongodb,浅酌MongoDB---服务端命令

Hi大家好,我是小魂。关于服务端命令,直接在cmd中敲help就能得到。但是每次都打help是不是太麻烦呢?好吧,我帮你把他弄出来了。如下:
db.help() help _disibledevent=> set current database db.foo.find() list objects in collection foo db.foo.find( { a : 1 } ) list objects in foo where a == 1 it result of the last line evaluated; use to further iterate DBQuery.shellBatchSize = x set default number of items to display _disibledevent=>) 0=off 1=slow 2=all db.shutdownServer() db.stats() db.version() current version of the server db.getMongo().setSlaveOk() allow queries _disibledevent=>
Tags:  mongodb

延伸阅读

最新评论

发表评论