【问题标题】:Connection sasl conversation error(authentication error) while using mongoexport使用 mongoexport 时连接 sasl 对话错误(身份验证错误)
【发布时间】:2020-09-04 10:47:28
【问题描述】:

我正在尝试使用我的 URI 连接字符串将数据从 mongodb 集群导出到我的计算机,但出现错误:无法连接到服务器:连接():身份验证错误:sasl 对话错误:无法使用机制“SCRAM-S HA-1”进行身份验证:(AtlasError) bad auth Authentication failed

这是我正在使用的命令:

mongoexport --uri="mongodb+srv://yash_verma:<******>@jspsych-eymdu.mongodb.net/test?retryWrites=true&w=majority" --collection=entries --out=entries.csv 

谁能告诉我我做错了什么?我确定我使用了正确的密码。

我对编程也很陌生,并试图在网上寻找解决方案,但还没有找到。

任何帮助将不胜感激。

谢谢, 亚什。

【问题讨论】:

  • 顺便说一句,我的用户名是'yash_verma',我的数据库是'test',我的集合是'entries'。

标签: node.js mongodb mongoexport


【解决方案1】:

您的连接字符串看起来不错,但请确保删除 &lt;password&gt; 周围的尖括号 (),如下所示:

mongoexport --uri="mongodb+srv://yash_verma:******@jspsych-eymdu.mongodb.net/test?retryWrites=true&w=majority" --collection=entries --out=entries.csv 

...其中****** 是数据库用户yash_verma 的数据库密码(不是帐户密码!)。

Duplicate answer

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-10-12
    • 2020-01-21
    • 2018-06-05
    • 1970-01-01
    • 1970-01-01
    • 2017-02-05
    • 2015-04-01
    • 2015-05-17
    相关资源
    最近更新 更多