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

Hibernate - HibernateException: createQuery is not valid without active transaction