MongoDb的“not master and slaveok=false”错误及解决方法
2017-09-26 23:36
716 查看
在SECONDARY查询出发现如下错误:
这是正常的,因为SECONDARY是不允许读写的,如果非要解决,方法如下:
原文链接:http://xiaoqiangge.com/aritcle/1505974680541.html
SECONDARY> show collections; Sat Aug 4 15:29:00 uncaught exception: error: { "$err" : "not master and slaveok=false", "code" : 13435 }
这是正常的,因为SECONDARY是不允许读写的,如果非要解决,方法如下:
SECONDARY> rs.slaveOk();
原文链接:http://xiaoqiangge.com/aritcle/1505974680541.html
相关文章推荐
- 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”错误及解决方法
- 【MongoDB】MongoDb的“not master and slaveok=false”错误及解决方法
- MongoDb的“not master and slaveok=false”错误及解决方法
- MongoDb的“not master and slaveok=false”错误及解决方法
- MongoDB的“not master and slaveok=false”错误解决
- MongoCursorException ***not master and slaveOk=false
- "$err" : "not master and slaveok=false", "code" : 13435
- uncaught exception: error: { "$err" : "not master and slaveOk=false", "code" : 13435 }
- not master and slaveOk=false
- NOT MASTER AND SLAVEOK=FALSE
- mongoDB Error:not master and slaveOk=false
- 错误“a label can only be part of a statement and a declaration is not a statement”解决方法
- PSI and index do not match错误解决方法
- 错误“a label can only be part of a statement and a declaration is not a statement”解决方法
- master and slave have equal MySQL server UUIDs 解决方法
- NaN and infinity literals not allowed by shader model 错误解决方法