程序代写代做代考 2018/12/6 CS 411 (187 unread)

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 FilesMongoDBServer4.0inmongod.exe” –dbpath=”D:UIUCMongoDBServer4.0HW5-Dataset”

 
Start Mongo Shell, in CMD2:

“C:Program FilesMongoDBServer4.0inmongo.exe”

 
Load csv, in CMD3:

cd C:Program FilesMongoDBServer4.0in
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 FilesMongoDBServer4.0in)
 

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/

Leave a Reply

Your email address will not be published. Required fields are marked *