Team,
I was able to connect to the M201 databases through MongoDB shell from the command promt using the below connection string:
mongo “mongodb://cluster0-shard-00-00-jxeqq.mongodb.net:27017,cluster0-shard-00-01-jxeqq.mongodb.net:27017,localhost:27017”
It was working a few days before. I was able to access the M201 DB using the compass as well. But, right now I am not able to connect and getting the below error:
MongoDB shell version v4.0.9
connecting to: mongodb://cluster0-shard-00-00-jxeqq.mongodb.net:27017,cluster0-shard-00-01-jxeqq.mongodb.net:27017,localhost:27017/?gssapiServiceName=mongodb
2019-05-26T11:19:04.333+0530 E QUERY [js] Error: couldn’t connect to server localhost:27017, connection attempt failed: SocketException: Error connecting to localhost:27017 (127.0.0.1:27017) :: caused by :: No connection could be made because the target machine actively refused it. :
connect@src/mongo/shell/mongo.js:343:13
@(connect):2:6
exception: connect failed
Can you please let me know what mistake I have in the connection string.
Regards
Pradeep