分类: Mysql/postgreSQL
2012-09-25 23:05:41
在local库中不仅有主从日志oplog集合,还有一个集合用于记录主从配置信息 –system.replset
rs1:PRIMARY> use local switched to db local rs1:PRIMARY> show collections oplog.rs system.replset rs1:PRIMARY> db.system.replset.find() { "_id" : "rs1", "version" : 1, "members" : [ { "_id" : 0, "host" : "localhost:28010" }, { "_id" : 1, "host" : "localhost:28011" }, { "_id" : 2, "host" : "localhost:28012" } ] } rs1:PRIMARY> |