2018/12/6 CS 411 (187 unread)
https://piazza.com/class/jl5z3qwqna71lp?cid=745 1/1
note 92 views
Updated 9 days ago by
Some tips for setting up MongoDB on Windows
Using wizard to download and install MongoDB: https://docs.mongodb.com/manual/tutorial/install-mongodb-enterprise-on-windows/
*Write down the –dbpath and use it when connected to MongoDB
Start Server, in CMD1:
“C:\Program Files\MongoDB\Server\4.0\bin\mongod.exe” –dbpath=”D:\UIUC\MongoDB\Server\4.0\HW5-Dataset”
Start Mongo Shell, in CMD2:
“C:\Program Files\MongoDB\Server\4.0\bin\mongo.exe”
Load csv, in CMD3:
cd C:\Program Files\MongoDB\Server\4.0\bin\
mongoimport –db hw5 –collection review –type csv –file review.csv –headerline
mongoimport –db hw5 –collection business –type csv –file business.csv –headerline
*(put both csv in C:\Program Files\MongoDB\Server\4.0\bin\)
Start you HW, in CMD2:
show dbs
use hw5
db.review.find();
*To paste: right-click shell
hw5
~ An instructor ( ) thinks this is a good note ~Abdu Alawini
Zhonghao Pan
followup discussions for lingering questions and comments
Resolved Unresolved
8 days ago
Very informative. Thank you!
Abdu Alawini
https://docs.mongodb.com/manual/tutorial/install-mongodb-enterprise-on-windows/