I\'m trying to connect to a MongoDB database with a username and password using Mongoose in Node.js. All the docs say that the connection string should look like
<
Use the options parameter of the mongoose.connect call to specify the password instead of including it in the URL string:
options
mongoose.connect('mongodb://localhost/test', {user: 'username', pass: 'p@ssword'}, callback);