Hi
can anyone pls help me with an example of connecting to a MongoDB Atlas
cluster (their cloud service).
My Atlas cluster replica set is at the urls
yyyy-shard-00-00.xxxxx.mongodb.net:27017
yyyy-shard-00-01.xxxxx.mongodb.net:27017
yyyy-shard-00-02.xxxxx.mongodb.net:27017
The MongoDB Atlas website specifies the application connectstring as
'mongodb+srv://<username>:<password>@yyyy.xxxxx.mongodb.net/<mydefaultdatabase>?retryWrites=true&w=majority"
I saw the doc / example on pharo-nosql/mongotalk but could not figure out in
MongoClient -
1. how to get embed the username:password in the connectstring which i feel
would be needed,
2. how to specify the default database
3. is it required to specify all three members while Mongo suggests a single
part connect string which probably must be covering the cluster
thanks
-----
cheers,
Sanjay
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
If you are on Windows, use curl and wire shark to see what is needed. Thats what I did to connect to RiakDB
On 18 Mar 2021 11:43, Sanjay Minni <s...@planage.com> wrote:
- [Pharo-users] Connecting to a MongoDB Atlas Cluster Sanjay Minni
- [Pharo-users] Re: Connecting to a MongoDB Atlas Clu... Sanjay Minni
- [Pharo-users] Re: Connecting to a MongoDB Atlas... Stéphane Ducasse
- [Pharo-users] Re: Connecting to a MongoDB A... Sanjay Minni
- [Pharo-users] Re: Connecting to a Mongo... Sanjay Minni
- [Pharo-users] Re: Connecting to a Mongo... Sanjay Minni
- [Pharo-users] Re: Connecting to a MongoDB Atlas Clu... David Pennington