mongodb - Mongo authentication issues -


Hello, I have a new AWS server with a bitmani MEAN stack.

I am the root user, and I started the call on the command line.

When I try to do anything like "show dbs" (except "use test", or "use admin"),>

I get the following error:

show dbs

  list database fails: {"OK": 0, "errmsg": Src / mongo / shell / mongo On js: 46  

I know that I am doing something wrong with permissions, I do not know what this is. / P>

When I'm in Songdog Everything looks okay, but I think:

  # on / off the security current by default #noauth = true auth = true  

In addition to this, is probably relevant, when I try to run a Mongoode, I get errors about "/ data / db",

" text ">

You do not need to run again mongod if it is already running And it's likely that this Is already there. You are not even saying how you are trying to connect, which is likely to be your problem.

I recommend reading what the default user authentication is and how it is connected:

  $ mongo admin --username root --pasword YOURPASSWORD  

Where the default page contains the default password

For more information, see the official Mongodi document which has several examples:


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -