error_img config_27017 config_27020 I am trying to extract data from one db(running in port 27017) and storing the extracted data in another db(27020). for 1st db I have set auth but not for 2nd db. I have mongodb installed in aws instance. And I am Creating each database in different ports(i.e. 27017, 27020). Created separate mongo_config file for each port. Able to access newly created db from robo3T, However accessing collection gives below error:
**Error "ListCollection failed: {ok: 0.0, errmsg: "not authorized on <db> to execute command {listCollection:1, filter: {}, cursor: {}, $readPreference: {mode: "secondaryPreferred"}. $d..". code:13, codeName: "Unauthorized"}"}**
Please suggest me the steps to create 2 mongo instances, listening to 2 diff ports in one server.