show dbs show database names
> show dbs
local (empty)
logging 0.203125GB
test 0.203125GB
show collections show collections in current database
> show collections
bios
system.indexes
另一種用法是show tables
> show tables
bios
system.indexes
show users show users in current database
show profile show most recent system.profile entries with time >= 1ms
> show profile
db.system.profile is empty
Use db.setProfilingLevel(2) will enable profiling
Use db.system.profile.find() to show raw profile entries