When I first type mongo
, I see "connecting to : test". However, when I type show dbs
, it does not show me the test
db. I can still see local
, as well as some other dbs that I created... but not test
. Any hints why?
If you type db
you will see that you are on database named test, but it won't be shown in list, that happens because test db doesn't contain any document it is empty. You need to create at least one document in test database if you want it to be shown in list after typing show dbs
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With