Hi everyone,
I’m a total beginner when it comes to databases and MongoDB in particular.
I installed MongoDB via the current Debian buster package.
I tried to create an admin user as in the MongoDB documentation. I typed:
use admin
db.createUser( {
user: "nombreUsuarioAdmin",
pwd: "contrasenaUsuarioAdmin",
roles: [{role: "root",db: "admin"}]
})
The response to this command is:
Fri May 1 19:51:45.706 TypeError: Property ‘createUser’ of object test is not a function.