Mongo - Start mongo connecting to replica set

$ mongo --host <replica_set_name>/<hostname_1>:<host_port_1>,host2[:porthost1],host3[:porthost3] <database_name>
  • <replica_set_name>: Probably defaults to "rs0"
  • Find the pairs <host>:<port> using the mongo command rs.status()


Comments

Popular posts from this blog

Oracle - duplicate fields in RECORD,TABLE or argument list are not permitted

Oracle - ORA-29282: invalid file ID, ORA-06512: at "SYS.UTL_FILE"