mongoexport 导出json 报sasl conversation error: unable to authenticate using mechanism “SCRAM-SHA-1“

编程知识 更新时间:2023-05-02 21:07:10

查看了mongo的日志,提示找不到用户("UserNotFound: Could not find user \"xxx\" for db \"xxxx\"),明明创建了用户,并且已经授权对需要导出的数据库的读写权限,再回头看了下帮助文档,发现是authenticationDatabase 这个参数弄错了,authenticationDatabase就是创建用户所在的数据库,我是在admin创建用户的,然后再授权访问其他数据库,果断把authenticationDatabase参数值改为admin,一切ok。

 

更多推荐

mongoexport 导出json 报sasl conversation error: unable to authenticate using mechan

本文发布于:2023-04-28 16:25:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/4ebd059bb142ffabafe5cac70b891131.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:conversation   error   sasl   mongoexport   json

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!

  • 109076文章数
  • 27697阅读数
  • 0评论数