how to fill out connection string for mongo db I h...
# ask-ai
r
how to fill out connection string for mongo db I have that info below: <mongodb://gl_reader:gFHAC8myXt7c4e96xsLuEk@10.25.20.243:27017%7Cmongodb://&lt;user&gt;:&lt;pass&gt;@&gt;&lt;list of hosts>/?replicaSet=ConnectDevReplica&authSource=admin&readPreference=secondaryPreferred
k
For the MongoDB V2 source in Airbyte, the “Connection String” field should be the standard MongoDB URI exactly as MongoDB expects it. The docs say to copy or build the normal MongoDB connection string for your cluster and paste it into that field. [[Config params](https://docs.airbyte.com/integrations/sources/mongodb-v2#configuration-parameters); [Step 2](https://docs.airbyte.com/integrations/sources/mongodb-v2#step-2-discover-the-mongodb-cluster-connection-string)] From what you posted, your actual connection string should look like this (one single URI):
Copy code
text <mongodb://gl_reader:gFHAC8myXt7c4e96xsLuEk@10.25.20.243:27017/?replicaSet=ConnectDevReplica&authSource=admin&readPreference=secondaryPreferred>
Use that value in the Connection String field when configuring the MongoDB V2 source, and choose Cluster Type = Self-Hosted Replica Set if that matches your deployment. [[Config params](https://docs.airbyte.com/integrations/sources/mongodb-v2#configuration-parameters)] Note: there is an open issue where the MongoDB V2 connector may not properly pass the
replicaSet
parameter to Debezium for self-managed replica sets, which can cause CDC (incremental) syncs to fail even if the connection string is correct. [[Issue 63300](https://github.com/airbytehq/airbyte/issues/63300)]