我正在尝试访问mongodb数据库。基于那棵树
/var/lib/mongodb $ ls
admin.0 admin.ns diagnostic.data journal local.0 local.1 local.ns mongod.lock mummer_alana.0 mummer_alana.ns storage.bson
我试图访问的数据库是存储是mummer_alana.0但是我无法在shell上看到它。
> show databases;
admin 0.000GB
local 0.000GB
我也很确定我的dbpath配置得很好
cat /etc/mongod.conf
# mongod.conf
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/
# Where and how to store data.
storage:
dbPath: /var/lib/mongodb/
干杯。