Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

I’m trying to secure mongodb by following the link
https://www.digitalocean.com/community/tutorials/how-to-secure-mongodb-on-ubuntu-20-04
But it isn’t working. -I’m on step 1:.
This is what happens
db.createUser(
... {
... user: "Adam",
... pwd: passwordPrompt(),
... roles: [ { role: "userAdminAnyDatabase", db: "admin" }, "readWriteAnyDatabase" ]
... }
... )
Enter password:
uncaught exception: Error: couldn't add user: Could not find role: readWriteAnyD atabase@test :
_getErrorWithCode@src/mongo/shell/utils.js:25:13
DB.prototype.createUser@src/mongo/shell/db.js:1367:11
@(shell):1:1
What went wrong?
Does this mean the mongodb installation is broken? I followed the digital ocean link https://www.digitalocean.com/community/tutorials/how-to-install-mongodb-on-ubuntu-20-04
d120f92c45b144db8d6c4f97c5da0c
patrickniessenmakezens
2528527458a540fba5c38cc921bb27
c21c0b00bb284130a0d0cd3b7bdab4
IsaacMvd
Leon Junior
hashembarret@gmail.com
JetForMe
24608ead89f046a8abab394f968f2c
Philipp Mayerhofer
enews