You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
initial we try to connect to database without username and password
MongooseModule.forRoot('mongodb://localhost/prospercare', { useCreateIndex: true,useNewUrlParser: true }),
for security reason we add username and password.
but after giving those details not able to connect to database using user name and password
initial we try to connect to database without username and password
MongooseModule.forRoot('mongodb://localhost/prospercare', { useCreateIndex: true,useNewUrlParser: true }),
for security reason we add username and password.
but after giving those details not able to connect to database using user name and password
MongooseModule.forRoot('mongodb://username:password@localhost/prospercare', { useCreateIndex: true,useNewUrlParser: true }),
getting error as MongoNetworkError: failed to connect to server [localhost] on first connect [MongoError: Not Authenticated.
The text was updated successfully, but these errors were encountered: