Not able to connect to mongo cluster, says authentication failed

This is my command - mongo “mongodb://shubcluster-shard-00-00-rxzwm.mongodb.net:27017,shubcluster-shard-00-01-rxzwm.mongodb.net:27017,shubcluster-shard-00-02-rxzwm.mongodb.net:27017/test?replicaSet=shubCluster-shard-0” --authenticationDatabase admin --ssl --username m001-student --password m001-mongodb-basicsatlasAutherror

It is showing “Authentication Failed”.

Please re-check the credentials for the user m001-student from you Atlas account.

Kanika

Can you guide me through it? Where should I check the credentials in my atlas account

Thanks Kanika,
I fixed it. I didn’t know I will have to create a m001-student user

1 Like