Getting the error for create user

What is the issue in it please let me know

‘db.createUser(
{ user: “m103-application-user”,
pwd: “m103-application-pass”,
roles: [ { db: “applicationData”, role: “readWrite” } ]
}
)’

when i hit enter i am getting this error:

$‘db.createUser(\n{ user: “m103-application-user”,\npwd: “m103-application-pass”,\nroles: [ { db: “applicationData”, role: “readWrite” } ]\n}\n)’: command not found

and when click on run test getting this error:

3 total, 0 passed, 0 skipped:
[FAIL] “The user m103-application-user was created on the admin database”

Did you create the ‘m103-application-user’ on the admin database?

[FAIL] “The user m103-application-user has the correct permissions”

Did you create the ‘m103-application-user’ with the readWrite role on the
applicationData database?

[FAIL] “The user m103-application-user has the correct password”

Did you create the ‘m103-application-user’ with the password
‘m103-application-pass’?

Please help

A post was merged into an existing topic: Getting the error for create user

And I just saw the same question in another thread. please keepyour questionina single thread because it slows people trying to help.

Hi @rajesh_50804,

I’m closing this thread as you are already getting support for the same issue in this thread.