Home  >  Q&A  >  body text

javascript - About mongodb authentication issues

Figure 1 shows user addition under admin when the authentication function is not turned on

Figure 2 is to modify the configuration and restart the service

Figure 3 shows the admin set that enters the database with the authentication function turned on and performs authentication. The authentication is successful. Why does it still prompt that it is not authenticated when executing the command? ?

mongodb is version 3.4

大家讲道理大家讲道理2708 days ago790

reply all(1)I'll reply

  • 迷茫

    迷茫2017-06-10 09:50:05

    Not authorized: Insufficient permissions. You need to be given permission to manage multiple databases, including listdatabases.

    Please refer to:

    https://docs.mongodb.com/manu...

    Love MongoDB! Have fun!

    reply
    0
  • Cancelreply