1000e_db_demo 0.129GB
1000e_db_prod 0.000GB
1000e_db_product 1.232GB
1000e_db_test 0.741GB
local 33.283GB
db.getName(); ---显示当前使用的数据库名称
db.stats(); ---显示当前数据库状态,包含数据库名称,集合个数,当前数据库大小 ...
show collections; ---查看数据库中有那些个集合(表)
db.fs.files.find(); --- 观察fs.files的情况
db.e1000.files.find().pretty(); --- 观察app文件上传的相关信息 -> pretty():格式化输出
db.e1000.files.find().sort({'uploadDate':-1}).limit(1).pretty(); -- “-1”:降 “1”:升'
db.fs.chunks.find(); --- 观察fs.chunks的情况
亲,沙发正空着,还不快来抢?
我要评论 / 展开表单