Error in java program link mongodb, error 18: ‘Authentication failed.’

  java, question

1. mongodb-driver series jar package is used
2. The linking method corresponding to SCRAM-SHA-1 is used
3. mongodb library has no user password authentication login, and the corresponding library also has no user

Q: do you want to use this method? creator escamsha 1 credential must have user?
(The previous test library was solved by adding user)
(I hope I can tell you something about mongo)

Thank you

In MongoDB, in general, users created under which library must be verified under this library.

For reference.

Love MongoDB! Have fun!

2017MongoDB Chinese Community Chengdu User Group Conference

This Sunday. The content is very wonderful and benefits emerge in endlessly.

Please click:Link