on connecting to Mongo Atlas i always have this error message MongoDB not running on the provided host and port ,so that i can’t submit the lab assignment
An error occurred while loading navigation: ‘not master and slaveOk=false’: It is recommended to change your read preference in the connection dialog to Primary Preferred or Secondary Preferred or provide a replica set name for a full topology connection.
Received this error message not sure what to do next.
I am sorry that you are having trouble connecting to compass. Here are few checks:
- you are using latest Stable version of Compass i.e .1.16.3.
- You are able to access cluster0-shard-00-00-jxeqq.mongodb.net
- Your 27017 port is free to use.
- Make sure by running the following command in your terminal:mongo “mongodb://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?replicaSet=Cluster0-shard-0” --authenticationDatabase admin --ssl --username m001-student --password m001-mongodb-basics
If you are able to connect through the command above, restart compass and try again.
Also, please check this post. About the Chapter 1: Compass Connection [Solution]