Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongodb connect with password

mongodb://[Username:Password(optional)]@HostName:Port/?aruguments
note: if your password has special characters, you would need to URL-Encode.

ex : monodb://my-name:my-pass@localhost:27017/?authSource=users
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mongodb #connect #password
ADD COMMENT
Topic
Name
6+1 =