I need to create a MongoDB database and user, but everything via shell.
I found something about --eval and --shell, but I could not get it to work, I'm trying this way:
mongo mongodb://11.11.123.321:27017 --eval "db.createUser({user: "...
asked by
28.09.2018 / 22:44