Mongo复制集同步验证的实例详解
mongo复制集同步验证的实例详解 第一步:在主节点上插入一条数据 Sql代码 rs0:PRIMARY> use imooc switched to db imooc rs0:PRIMARY> db.imooc.insert({"name":"imooc"}) WriteResult({ "nInserted" : 1 }) 第二步:在从节点查看数据,看是否同步 Sql代码 rs0:SECONDARY> use imooc switched to db imooc rs0:SECONDARY> show tables 2017-06-14T19:33:06.118+0800
下载地址
用户评论