how to create replication in mongoDb (node.js) in latest version.
i was trying mongodb documentation https://www.mongodb.com/docs/manual/tutorial/convert-standalone-to-replica-set/
i used this command to run instance as replication:
mongod --port 27017 --replSet rs0 --dbpath="C:\data\db0"
then in mongosh
run rs.initiate()
command and getting error as replica set not found
Download mongosh new version and in mongo shell try to run these commands
rs.initiate();
rs.conf();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.