mongodump -h ip:port -d dbname -o ./ -u=username -p=password --authenticationDatabase=验证数据库
1、没有添加“--authenticationDatabase=验证数据库”时候
Failed: error connecting to db server: auth failed
本文介绍使用mongodump进行数据库备份时遇到的认证失败问题及解决方案。通过添加正确的--authenticationDatabase参数,成功解决了连接数据库时的认证失败错误。
mongodump -h ip:port -d dbname -o ./ -u=username -p=password --authenticationDatabase=验证数据库
1、没有添加“--authenticationDatabase=验证数据库”时候
Failed: error connecting to db server: auth failed
1万+

被折叠的 条评论
为什么被折叠?