Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

【事前準備】安裝 MongoDB!

本教學為 2017/10/18(三)在台灣大學所舉辦的【動動手指】機器學習與智能機器人事前準備步驟。

Download URL: https://www.Mongodb.com/download-center#community

下載完後可以在目錄:C:Program FilesMongoDBServer3.4bin 找到

 

利用 GUI 應用程式 操控 MongoDB

下載 Robomongo(MongoDB management)
https://robomongo.org/download

 

讓 Robomongo 和你的 MongoDB 做連接

1.首先先利用建立一個 Database
在 C 槽建立 data 資料夾裡面再放 db 資料夾(格式需求)
img src="https://i.imgur.com/cOCU3Fv.png" alt="" />
打開cmd(命令提示字元)
cd …
cd …
cd “C:Program FilesMongoDBServer3.4bin”(到達Mongod.exe 的所在目錄)
mongod (執行mongodb server,等待連結)

 
2.打開 Ronomongo 做連接(client 端)

 
3.按下 connect 後會看到

 
4.輸入你想要的名字(Address上的 localhost port 27017 正是你 mongoDB server 端現在在執行的port),按下 save 即完成連接你會看到

 
5.完成 MongoDB 本地端的建立!!
 

MongoDB 的優點

  • No-SQL 資料庫:存入的資料類型沒有限制要每個都一樣(具彈性)
  • Document 資料庫:以一個個 JSON 格式的文字存入資料庫中,各程式建物件導向易於傳遞這些 JSON 資料(普遍性)
  • MongoDB 核心是 C++:運算操作裡面的資料迅速(快速性)
  •  

用 Robomongo 的原因是因為相較於指令(cmd介面)能更理解資料庫中資料擺放的位置(視覺化)

 
nbsp;nbsp;nbsp;

謝明軒 Ming-Hsuan Hsieh

專長:Java、C、Javascript

GitHub :swes1117

Share the post

【事前準備】安裝 MongoDB!

×

Subscribe to Msdn Blogs | Get The Latest Information, Insights, Announcements, And News From Microsoft Experts And Developers In The Msdn Blogs.

Get updates delivered right to your inbox!

Thank you for your subscription

×