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
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!