Mongodb replica mode connection failed

After deploying mongodb replica mode and enabling external access, I cannot connect through mongodb compass. If I deploy the standard version, there is no problem. How should I connect?
2 Replies
Flain
Flain2mo ago
use directConnection=true param in connection link or just simply set this in advanced connection settings inside compass mongodb://root:*@xx.xxx.xxx.xx:27017/?directConnection=true
rainTrip
rainTripOP2mo ago
After setting up the direct connection, it did work. Thanks for your reply

Did you find this page helpful?