I am a mongodb novice. I was tasked to migrate existing mongodb database to a remote server. The issue starts with me changing the dB path (mongodump and mongorestore work fine with the default dB path at /var/lib/mo go) at the new server.
I tried to change to another directory and met with a few issues, mostly due to permissions. I then switch back to the default directory and upon executing ‘mongosh’, it is somehow stuck at the new directory, although I have revert the changes at /etc/mongo.conf for the dB path.
I then attempted to uninstall the entire mongodb to try everything from scratch again but somehow mongodb shell is not uninstalled after performing sudo yum remove. I can still see it at /usr/bin.
Can I just delete the mongosh folder at /usr/bin? Or is there a better way to uninstall the mongodb shell?