MongoDB 命令

查看所有数据库
show dbs

使用某一个数据库
use local

查看这个数据库下的所有集合
show collections

查看这个数据库下的所有数据
db.startup_log.find()

原文地址:https://www.cnblogs.com/mchuang/p/6108864.html