MongoDb的“not master and slaveok=false”错误及解决方法
来源:互联网 发布:软件开发需求阶段 编辑:程序博客网 时间:2024/06/08 10:12
在SECONDARY查询出发现如下错误:
SECONDARY> show collections;
Sat Aug 4 15:29:00 uncaught exception: error: { "$err" : "not master and slaveok=false", "code" : 13435 }
这是正常的,因为SECONDARY是不允许读写的,如果非要解决,方法如下:
SECONDARY> rs.slaveOk();
0 0
- MongoDb的“not master and slaveok=false”错误及解决方法
- MongoDb的“not master and slaveok=false”错误及解决方法
- MongoDb的“not master and slaveok=false”错误及解决方法
- MongoDb的“not master and slaveok=false”错误及解决方法
- MongoDb的“not master and slaveok=false”错误及解决方法
- not master and slaveOk=false
- MongoCursorException ***not master and slaveOk=false
- "$err" : "not master and slaveok=false", "code" : 13435
- MongoDB的master-slave及replset测试
- ”device not found“错误原因及解决方法
- 异常com.mongodb.MongoException: not talking to master and retries used up 处理办法
- 【原创】Resetting and pausing target processor: FALSE 错误的解决
- Do not request Window.FEATURE_ACTION_BAR and set windowActionBar to false 错误
- PSI and index do not match错误解决方法
- dedecms(织梦cms)5.6出现Upload filetype not allow错误的原因及解决方法
- 遇到的错误,及解决方法
- mysql的错误及解决方法
- "current thread not owner"错误的解决方法
- 被520刷屏,来个段子:关于 “520” “521”这种节日的吐槽
- jQuery 实现广告条效果
- DirectX技术----D2D基础篇(一)
- BLE通信(续)
- string
- MongoDb的“not master and slaveok=false”错误及解决方法
- Smarty相关
- (4.1.27.7)JNI/NDK开发指南(四)——JNI 实战全面解析
- Node之XML
- HDU-3081-Marriage Match II【并查集】【二分图匹配】
- Android Material Design之Toolbar与Palette实践
- iOS学习之—— Notification的使用
- js获取当前时间和一星期前的时间
- android上传图片至服务器