I created a user named superuser in mongodb. Every steps were correct I tried with this command mongo -u superuser -p --authenticationDatabase admin After giving password I was