I created a new MongoDB user, and allowed connections from anywhere in the IP Whitelist section.
I tried to connect using the CLI from windows 10, but I got a connection error.
This is the command:
mongo “mongodb+srv://cluster0-mpoaq.mongodb.net/test” --username m001-student
the cluster name is Cluster0 and the user I have created has the following credentials: username:m001-student
after entering the password I got this error:
socket exception [CONNECT_ERROR] server [cluster0-shard-00-02-mpoaq.mongodb.net:27017] connection pool error: network error while attempting to run command ‘isMaster’ on host ‘cluster0-shard-00-02-mpoaq.mongodb.net:27017’
The mongoDB shell version is 4.0.6
any help is appreciated