
Create new user and grant it access to single database – MongoDB
Today we’ll create a new user and grant it access to a single database in MongoDB. Start off by logging into mongodb with your admin/root user mongo -u ‘username’ -p ‘password’ –authenticationDatabase ‘admin’ You’ll land at a prompt like below…