Below are the commands i am running.
- show db’s is resulting in Image 1(mongod is running a service and have only provided mongo as a command to a new cmd window).
2 using admin DB, ran command db.shutdownServer() and stopped the deamon running as a service.
- using a new cmd windows and running mongod,mongo and show db’s respectively, Image 2 DB’s are getting listed.
I am aware that i have created the database existing in Image 2 somewhere during the M201 lesson on my localhost, however it only gets reflected when i run the mongod manually(not by itself as a service).
Also note that i am using Vagrant for labs under this course, however am trying to replicate all processes(whichever applicable) on Windows locally as well.
Just to simplify, mongod as a Service and mongod as a process is listing me different set of DB’s.