mongo 操作

1.链接mongo

/path_to_mongo/bin/mongo

MongoDB shell version: 2.6.11
connecting to: test
> use logs
switched to db logs
> db.auth("user","123456")
1
>

2.查看有collections

show collections 

 

posted @ 2018-11-02 14:06  生心无住  阅读(159)  评论(0编辑  收藏  举报