Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't able to connect database using authentication #143

Closed
nickle72000 opened this issue Sep 6, 2019 · 1 comment
Closed

can't able to connect database using authentication #143

nickle72000 opened this issue Sep 6, 2019 · 1 comment

Comments

@nickle72000
Copy link

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.

@kamilmysliwiec
Copy link
Member

Please, use our Discord channel (support) for such questions. We are using GitHub to track bugs, feature requests, and potential improvements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants