assertion: 18 { ok: 0.0, errmsg: auth failed, code: 18 }
0、mongorestore报错
mongorestore -h 172.0.0.10:xxx -u xxx -p xxx -d aeras 执行恢复数据库出现RT鉴权失败错误
assertion: 18 { ok: 0.0, errmsg: "auth failed", code: 18 }
1、解决办法
方案1. 加上参数
--authenticationDatabase admin
方案2:本地mongo shell 和sever版本不兼容,到官网下载对应版本的二进制命令
mongodb download
assertion: 18 { ok: 0.0, errmsg: auth failed, code: 18 }相关推荐
- mongo 使用命令行连接总是一直报验证失败 { ok: 0.0, errmsg: auth failed, code: 18, codeName: AuthenticationFailed
情景: 迁移数据库,我想先连接下看看有没有限制比如acl这些. 于是我先telnet ip 端口 查看 是可以连接到端口的. 那么我就直接使用 mongo 命令行的连接方式来测试 mongo ip:p ...
- Error: 18 { ok: 0.0, errmsg: “auth failed“, code: 18 }解决方案
Error: 18 { ok: 0.0, errmsg: "auth failed", code: 18 }解决方案 1.版本原因后台的Driver版本太低不支持高版本的Mongo ...
- { ok : 0.0, errmsg : Authentication failed., code : 18, codeName : AuthenticationFailed
调用接口向mongoDB数据库写数据失败 背景:写了一个springboot整合mongoDB的小demo. 调用接口往数据库写入数据的时候,异常信息如下: com.mongodb.MongoComm ...
- ‘Authentication failed.‘ on server xx.xx.xxx.x:27017. The full response is { “ok“ : 0.0, “errmsg“
异常产生环境 在SpringBoot项目中使用yml文件连接mongodb产生(mongodb带密码验证) 异常描述 com.mongodb.MongoCommandException: Comman ...
- 账号密码连接远程阿里云mongodb服务,报错 AuthenticationFailed,code:18
root 账号访问 阿里云mongodb服务 的 admin数据库 可以, 但是访问其他数据库报错 AuthenticationFailed: ERROR StatusLogger The datab ...
- assertion: 18 { code: 18, ok: 0.0, errmsg: auth fails }
2019独角兽企业重金招聘Python工程师标准>>> MongoDB Version: 2.4.7 Mongodump: $ bin/mongodump -u admin -p a ...
- PyTorch报错“/.../Loss.cu: ... [59,0,0] Assertion input_val >= zero input_val <= one failed.”
1 问题描述 今天在调试代码的时候,出现这样一个错误: PyTorch Assertion: /opt/conda/conda-bld/pytorch_1640811803361/work/aten/ ...
- OpenCV(4.0.0) Error: Assertion failed (dst.data == (uchar*)dst_ptr) in cvShowImage
出现下述错误 OpenCV(4.0.0) Error: Assertion failed (dst.data == (uchar*)dst_ptr) in cvShowImage, file C:\b ...
- nginx: [emerg] CreateFile() “D:\soft\nginx-1.18.0/logs/nginx.pid“ failed (5: Access is denied)
win10启动nginx报错 nginx: [emerg] CreateFile() "D:\soft\nginx-1.18.0/logs/nginx.pid" failed (5 ...
最新文章
- Hash join 和nested loop
- Android知识点复习2(Service)
- github 修改项目为public_GitHub仓库中项目的语言属性可以这样修改,有点简单
- 18. 编写FTP客户端程序
- 网站采集内容对优化工作很有帮助
- Linux CentOS7 rsync通过服务同步、linux系统日志、screen工具
- 《剑指offer》-- 第一个只出现一次的字符、数组中只出现一次的数字、字符流中第一个不重复的字符、数组中重复的数字
- android alertdialog 背景透明,Android Alertdialog弹出框设置半透明背景
- [转载] Java:获取数组中的子数组的多种方法
- 从零开始学MVC3——创建项目
- centos7开放端口访问不了_CentOS7搭建GateOne,实现WebSSH
- Android MVP开发模式及Retrofit + RxJava封装
- linux运维实战练习-2015年9月13日-9月15日课程作业
- pop3协议auth指令总结
- 【编程语言】面向对象的六大原则
- 电子商务计算机和英语作文,电子商务的优缺点英语作文_电子商务英语作文
- CDH集群搭建(CDH 6.0.1)
- 手机寸照如何修改底色
- 从输出海外吃鸡游戏浅谈创新
- 计算机日语考研的学校,专科日语考研考什么学校