Can't connect using mongo shell because lack of credentials (First Lab of Chapter 2)

I am devastated. In the first Lab of Chapter 2, I can’t connect using mongo shell.

All users and passwords I’ve tried don’t work. And the steps of the lab don’t state which user to use to connect

I’ve tried:

  • mongo --port 27001 --username m103-user --password m103-pass --authenticationDatabase admin
  • mongo --host localhost --port 27001 --username m103-user --password m103-pass --authenticationDatabase admin
  • mongo --host 127.0.0.1 --port 27001 --username m103-user --password m103-pass --authenticationDatabase admin
  • mongo --host 127.0.0.1:27001 --username m103-user --password m103-pass --authenticationDatabase admin

and neither of them work

and Lab steps don’t state the user to connect

I am really desperate :frowning:

Shame on me.

There was no user at that time and I just:

mongo --host localhost --port 27001

Excuse me.

Hi @EDGAR_ALEJANDRO_RAMIREZ_GONZALEZ,

No worries :slight_smile: . We all do mistakes and I’m glad you figured it out on your own.

Please feel free to get back to us if you have any other doubts/questions.

~ Shubham