认证机制“SCRAM-SHA-1"不支持

问题描述:

当我使用 mongoc_client_new 进行用户认证时,产生错误,不支持认证机制SCRAM-SHA-1".

when i use mongoc_client_new to user authentication, produce the error, The authentication mechanism "SCRAM-SHA-1" is not supported.

有什么问题

第一:您使用的是哪种语言?如果是c++,可能是没有初始化导致的错误.一个简单的

First: Which language are you using? If it's c++, the error may be caused by the lack of initialization. A simple

  using mongo::client::initialize;
  Status status = initialize();

帮我解决了.