![]() ![]() ![]() ![]() If you don't have a user with this role restart mongo with just mongod without -auth and login as your superuser (if you have one) or with a simple mongo command and make this user with the appropriate privileges. So the way I was able to connect to a mongod -auth instance was:ฤก.Make sure you create a user while logged into mongodb as a user with appropriate permissions to create users on databases (like a user with the role userAdminAnyDatabase). I want to add an alternative to the answers above as neither worked for me. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |