I am following the directions here to try and install Mongo 3.6 w/ authentication turned on. I have added a "root" user and I am able to login using Mongo shell and I added a application user as well, but when I try to list DBs or collections using either root
or the other userid I created I get the following error:
not authorized on on admin to execute command { listDatabase: 1.0, $db: \"admin\" }
I also get this when I try to login through my node app using the application user. What am I doing wrong?
Ok, so the problem was two-fold:
Those 3 together seemed to allow me to
show dbs
,show collections
, and calllistDatabases
from MongoClient.