i'm trying to set authentication on mongodb in my windows 8
i want to do the same steps as this address How to secure MongoDB with username and password
this is want i have done
>mongod -auth
open another cmd
>mongo
>use admin
after this, i want to type db.addUser()
but there's no such function...
only db.adminCommand()
and db.auth()
how can i do? Thank you!