Answers for "mongodb password in connection string with @"

0

connection string mongodb with user

MongoClient.connect('mongodb://admin:password@localhost:27017/db', function (err, db) {
Posted by: Guest on February-15-2021
0

mongodb password in connection string with @

// use %40 for @

mongoClient.connect("mongodb://username:p%40ssword@host:port/dbname?authSource=admin");
Posted by: Guest on October-02-2021

Code answers related to "mongodb password in connection string with @"

Code answers related to "Javascript"

Browse Popular Code Answers by Language