I'm trying to shutdown mongodb so that I can convert it to a replica set, but I keep getting an error.
when using db.shutdownServer(), I get
"errmsg" : "not authorized on admin to execute command
I tried "use admin" and then running the command, but issue still persists. I saw another post where they said to use db.auth(username, password) but if I type that in cmd after connecting to cluster When I try db.auth(username, password) replacing username and password with actual values I get
SyntaxError: missing ) after argument list
I'm still new to mongodb so any help is appreciated.