note:create a folder in c:
create a folder named:data
create a folder named:in data folder db
search :mongo db download
click:
MongoDB Community Server Download
download
click:
MongoDB Shell Download
download
window+ e :open file explorer
go to downloads
double click : mongodb-windows-x86_64-6.0.3-signed
uncheck :install compass(optional)
next or allow or ok
copy the :mongosh-1.6.1-win32-x64(zip file)
go to C drive=>program files=>MongoDB=>server=>6.0=>bin=>paste(zip file)
zip file extract here or extract all
go to =>mongosh-1.6.1-win32-x64(folder)=>bin=>cut the mongosh file
and paste it in C drive=>program files=>MongoDB=>server=>6.0=>bin
copy the path from: C drive=>program files=>MongoDB=>server=>6.0=>bin
click on window=>type enviroment variable
enter
click on enviroment variables
click on the path variable
edit
new
paste
ok=>ok=>ok
how to start mongo db
1.to run the server
window+r then type cmd
type:mongod
2. to run the shell
window+r then type cmd
type:mongosh
0 Comments