Error while connecting to mongoDB compass

I’m getting below error:
Server selection timed out after 30000 ms

Please help me to resolve this issue.
Thanks in advance

Regards
Manisha

Hi @Manisha_87143,

Looking at the top right hand corner of your screenshot, click Paste connection string, paste the connection string below inside the box and try to connect:

mongodb://m001-student:m001-mongodb-basics@cluster0-shard-00-00-jxeqq.mongodb.net:27017,cluster0-shard-00-01-jxeqq.mongodb.net:27017,cluster0-shard-00-02-jxeqq.mongodb.net:27017/test?authSource=admin&replicaSet=Cluster0-shard-0&readPreference=primary&ssl=true

1 Like

Hi @Manisha_87143,

I hope you found @007_jb’s response helpful. Please let us know if you are still having any issue.

Thanks,
Shubham Ranjan
Curriculum Services Engineer