Home | 简体中文 | 繁体中文 | 杂文 | Github | 知乎专栏 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏

第 14 章 MongoDB Shell

目录

14.1. shutdownServer
14.2. show 查看命令
14.2.1. show dbs
14.2.2. show collections
14.2.3. show users
14.2.4. show profile
14.3. 切换数据库
14.4. Collection 管理
14.4.1. 创建 Collection
14.4.2. 删除 collection
14.4.3. 删除字段
14.5. save
14.6. insert
14.7. update
14.7.1. multi 更新所有数据
14.7.2. upsert 更新,如果不存在则插入数据
14.7.3. updateMany 更新集合中的所有数据
14.8. remove
14.8.1. 删除条件使用 _id
14.9. count()
14.10. 查询
14.10.1. find() MongoDB 2.x
14.10.2. find() MongoDB 3.x
14.10.3. group()
14.11. aggregate
14.11.1. project
14.11.2. groupby + sum
14.12. Indexes 索引
14.12.1. 查看索引
14.12.2. 创建索引
14.12.3. 删除索引
14.12.4. 唯一索引
14.12.5. 复合索引
14.12.6. 稀疏索引
14.13. Map-Reduce
14.13.1. 使用 Map-Reduce 统计Web 服务器 access.log 日志文件
14.14. 内嵌对象
14.14.1. Array / List 列表类型
14.15. Javascript 脚本

14.1. shutdownServer

关闭MongoDB数据库

		
db.shutdownServer()