Login on the power shell v with dB authentication or without
For example: $ mongo superadmin -u [Username] -p [Password] --port=35615
Run the following command for user creation:
> use CloudTechtiq (CloudTechtiq is the dB name on which you assigned the user)
> db.createUser(
{
user: "appuser",
pwd: "EwQDP4x",
roles: [ "readWrite", "dbAdmin" ]
}
)
Note: appuser (user name which one you want to define) EwQDP4x (password for user) dbAdmin (User role for database)
If you want to give the full access of dB server, you can change the role to Root .
Services Cloudtechtiq offers: