Clicky

Mongo - Start mongo connecting to replica set

March 18, 2016

$ 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 : using the mongo command rs.status()