I have some mongoDB dump files(with .bson and .json formats) exported from my centos7 server. Is there anyway to Import them in my MongoDB on win10? I'm using mongorestore command but its cannot be found while I set an environment variable with "mongorestore" name and ".../mongorestore.exe" value and mongod.exe is running.
If the above commands don't work in windows, you can navigate to /bin
directory where your MongoDB is installed and then run the mongodump.exe
which will create the dump files of all the databases present.
To restore a database, copy the dump folder into the /bin
directory and execute mongorestore.exe