当前位置: 代码迷 >> 综合 >> mongoexport 导出json 报sasl conversation error: unable to authenticate using mechanism “SCRAM-SHA-1“
  详细解决方案

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

热度:91   发布时间:2024-02-07 19:04:53.0

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

 

  相关解决方案