Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can Any body tell me how to write a connection string for MongoDB if credentional are as follows:

Database Name - ABC,

Server Name - DEF1,DEF2

UserName - ankur

Password - ankur123

I have Created at My End below

mongodb://ankur:ankur123@DEF1:27017,DEF2:27017/ABC?maxpoolsize=250;authSource=$external;authMechanism=PLAIN;safe=true
Posted
Comments
George Swan 25-May-15 13:41pm    
I would suggest setting up your servers as replica sets. There are details of how to do this here
http://www.codeproject.com/Articles/524602/Beginners-guide-to-using-MongoDB-and-the-offic
Ankur Jasoria 17-Jun-15 8:56am    
Yippeee got the solution Issue is my server have permission issue and I hve figure out and worked Successfully !!

1 solution

 
Share this answer
 
Comments
Ankur Jasoria 17-Jun-15 8:56am    
Yippeee got the solution Issue is my server have permission issue and I hve figure out and worked Successfully !!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900