MongoDB
 sql >> Database >  >> NoSQL >> MongoDB

Password MongoDB con @ al suo interno

Usa questa sintassi:

// use %40 for @
mongoClient.connect("mongodb://username:p%[email protected]:port/dbname?authSource=admin", { 
        useNewUrlParser: true
    }, function(err, db) {

    }
);