Web development basic and advance tutorial, php basic tutorial, laravel basic tutorial, React Native tutorial

Wednesday, February 1, 2023

windows 10 mongodb import backup | How to Import mongodb dump files

0 comments

Introduction


In this tutorial i will show you how you can create import backup using mongodb. first of all you have to Download MongoDB Command Line Database Tools | MongoDB. you have to download the msi
after download it will show like this


then you have to install in your windows 10, after install you have to setup environment variable. 
you know how to setup environment variable.

write in search bar in windows 10 environment variable.

put this path in environment variable C:\Program Files\MongoDB\Tools\100\bin
 

first of all you need to create folder dump inside the dump folder you have to put the backup of folder with database name then put the comand line

suppose i have create dump folder in C drive dump

now go to cmd then go to the c drive and past this comand

mongorestore --host localhost --port 27017  dump









No comments:

Post a Comment