MongoDb的“not master and slaveok=false”错误及解决方法
2012-08-04 15:36
417 查看
在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();
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】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的“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
- NOT MASTER AND SLAVEOK=FALSE
- MongoCursorException ***not master and slaveOk=false
- uncaught exception: error: { "$err" : "not master and slaveOk=false", "code" : 13435 }
- mongoDB Error:not master and slaveOk=false
- 错误“a label can only be part of a statement and a declaration is not a statement”解决方法
- master and slave have equal MySQL server UUIDs 解决方法
- master and slave have equal MySQL server UUIDs 解决方法
- NaN and infinity literals not allowed by shader model 错误解决方法
- master and slave have equal MySQL server UUIDs 解决方法