This article is a mirror article of machine translation, please click here to jump to the original article.

View: 8113|Reply: 0

Create an account and password to log in to MongoDb

[Copy link]
Posted on 10/9/2016 5:32:58 PM | | | |
--Create an authentication account and password


Modify the registry
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\mongotest\ImagePath


MongoTest is actually the name of your Mongodb service, which varies from person to person.


Plus --auth (note!) --auth must be added before --service, in short, --service should be at the end)
"C:\Program Files\MongoDB\Server\3.2\bin\mongod.exe" --storageEngine mmapv1 --bind_ip 127.0.0.1 --logpath C:\Databases\mongo\logs\mongodb.log --logappend --dbpath C:\Databases\ mongo\db --port 27017 --auth --service


We landed the way we did

Error, no permission...



Then log in with your account and password

Returning 1 indicates success







Previous:MongoDB permission role table
Next:How to determine whether an instance inherits a parent class or implements a certain type of interface in C#
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com