MongoDb的“not master and slaveok=false”错误及解决方法
2016-09-26 12:33
537 查看
MongoDb的“not master and slaveok=false”错误及解决方法
在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();
相关文章推荐
- 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”错误及解决方法,读写分离
- MongoDB的“not master and slaveok=false”错误解决
- "$err" : "not master and slaveok=false", "code" : 13435
- not master and slaveOk=false
- mongoDB Error:not master and slaveOk=false
- MongoCursorException ***not master and slaveOk=false
- uncaught exception: error: { "$err" : "not master and slaveOk=false", "code" : 13435 }
- NOT MASTER AND SLAVEOK=FALSE
- master and slave have equal MySQL server UUIDs 解决方法
- NaN and infinity literals not allowed by shader model 错误解决方法
- PSI and index do not match错误解决方法
- master and slave have equal MySQL server UUIDs 解决方法
- 错误“a label can only be part of a statement and a declaration is not a statement”解决方法