Lab: Reconfigure a Replica Set/ Error

I executed the following command: mongo admin --host m103-repl/localhost:27004
–username m103-admin --password m103-pass
After doing so, I am unable to proceed due to an error as shown in screenshot. Please help.

Please exit mongo prompt and run the command again at os prompt

1 Like

Hi @Arpita_Naganur,

I hope @Ramachandra_Tummala’s response was helpful.
You have to exit from mongoshell and try to run the command in a command prompt, it will work.

In case you have any doubts please feel free to reach out to us.