I have mongodb backup files as in.wt and.bson and some wieldtrigger files. I have installed mongodb on a new server and copied backed up files to /var/lib/mongo folder and restarted the mongodb service. It is not showing any DB's in MongoDB Compass. When I copied, the original files were overwritten. I also tried with the below command but no luck.
mongorestore -d dbname--c collection /var/lib/mongo/storage.bson""
Please help with how to restore the DB's and collections on a new server.
When I change /etc/mongod.conf bind ip from 127.0.0.1 to 0.0.0.0 and save. After starting the service, it fails to start and the error is "child processes exited 100."