I am new to mongodb
I have created two db paths with
mongod --dbpath abc
mongod --dbpath xyz
when I checked the /usr/local/etc/mongod.conf
file it still shows storage:
dbPath:
/usr/local/var/mongodb
how I can tell mongo command to load db from abc
or xyz
directory? should I change mongod.conf
file manually or is there any arguments that I can pass while mongo db server.
Mongodb version and details
$ mongod --version
db version v3.4.5
git version: 520b8f3092c48d934f0cd78ab5f40fe594f96863
OpenSSL version: OpenSSL 1.0.2l 25 May 2017
allocator: system
modules: none
build environment:
distarch: x86_64
target_arch: x86_64