MongoDB and GUI 管理界面

MongoDB

https://www.mongodb.com/html

MongoDB Atlas
Database as a Service

The best way to deploy, operate, and scale MongoDB in the cloud.
Available on AWS, Azure, and Google Cloud Platform

Launch a new app or easily migrate to MongoDB Atlas with zero downtime.mongodb

 

官方指導文檔數據庫

https://docs.mongodb.com/manual/tutorial/getting-started/express

db.collection('inventory').insertMany([ // MongoDB adds the _id field with an ObjectId if _id is not present
   { item: "journal", qty: 25, status: "A", size: { h: 14, w: 21, uom: "cm" }, tags: [ "blank", "red" ] }, { item: "notebook", qty: 50, status: "A", size: { h: 8.5, w: 11, uom: "in" }, tags: [ "red", "blank" ] }, { item: "paper", qty: 100, status: "D", size: { h: 8.5, w: 11, uom: "in" }, tags: [ "red", "blank", "plain" ] }, { item: "planner", qty: 75, status: "D", size: { h: 22.85, w: 30, uom: "cm" }, tags: [ "blank", "red" ] }, { item: "postcard", qty: 45, status: "A", size: { h: 10, w: 15.25, uom: "cm" }, tags: [ "blue" ] } ]) .then(function(result) { // process result
})

 

http://www.runoob.com/mongodb/mongodb-create-collection.htmlnpm

MongoDB 是一個基於分佈式文件存儲的數據庫。由 C++ 語言編寫。旨在爲 WEB 應用提供可擴展的高性能數據存儲解決方案。編程

MongoDB 是一個介於關係數據庫和非關係數據庫之間的產品,是非關係數據庫當中功能最豐富,最像關係數據庫的。服務器

 

NoSQL(NoSQL = Not Only SQL ),意即"不單單是SQL"。網絡

在現代的計算系統上天天網絡上都會產生龐大的數據量。app

這些數據有很大一部分是由關係數據庫管理系統(RDBMS)來處理。 1970年 E.F.Codd's提出的關係模型的論文 "A relational model of data for large shared data banks",這使得數據建模和應用程序編程更加簡單。分佈式

經過應用實踐證實,關係模型是很是適合於客戶服務器編程,遠遠超出預期的利益,今天它是結構化數據存儲在網絡和商務應用的主導技術。

NoSQL 是一項全新的數據庫革命性運動,早期就有人提出,發展至2009年趨勢愈加高漲。NoSQL的擁護者們提倡運用非關係型的數據存儲,相對於鋪天蓋地的關係型數據庫運用,這一律念無疑是一種全新的思惟的注入。

 

 

命令行

http://www.runoob.com/mongodb/mongodb-connections.html

如下實例咱們建立了數據庫 runoob:

> use runoob switched to db runoob > db runoob >

若是你想查看全部數據庫,能夠使用 show dbs 命令:

> show dbs admin 0.000GB local 0.000GB runoob 0.000GB >

能夠看到,咱們剛建立的數據庫 runoob 並不在數據庫的列表中, 要顯示它,咱們須要向 runoob 數據庫插入一些數據。

> db.runoob.insert({"name":"菜鳥教程"}) WriteResult({ "nInserted" : 1 }) > show dbs local 0.078GB runoob 0.078GB test 0.078GB >

 

GUI工具 -- mongo-express

https://www.npmjs.com/package/mongo-express

Web-based MongoDB admin interface written with Node.js, Express and Bootstrap3

 

Features

  • Connect to multiple databases
  • View/add/delete databases
  • View/add/rename/delete collections
  • View/add/update/delete documents
  • Preview audio/video/image assets inline in collection view
  • Nested and/or large objects are collapsible for easy overview
  • Async on-demand loading of big document properties (>100KB default) to keep collection view fast
  • GridFS support - add/get/delete incredibly large files
  • Use BSON data types in documents
  • Mobile / Responsive - Bootstrap 3 works passably on small screens when you're in a bind
  • Connect and authenticate to individual databases
  • Authenticate as admin to view all databases
  • Database blacklist/whitelist
  • Custom CA and CA validation disabling
  • Supports replica sets

 

配置設置

http://www.cnblogs.com/xiaohuochai/p/8794687.html

... if (process.env.VCAP_SERVICES) { var dbLabel = 'mongodb-2.4'; var env = JSON.parse(process.env.VCAP_SERVICES); if (env[dbLabel]) { mongo = env[dbLabel][0].credentials; } } else { mongo = { db:'blogs', host:"118.1.1.1", port:27017, ssl:false, username:'blogs', password:'123456', url:"mongodb://118.1.1.1:27017/blogs", // setting the connection string will only give access to that database
    // to see more databases you need to set mongodb.admin to true or add databases to the mongodb.auth list
    connectionString: process.env.ME_CONFIG_MONGODB_SERVER ? '' : process.env.ME_CONFIG_MONGODB_URL, }; } ...

 

 訪問網頁:

 

 

GUI工具 -- NoSQL Manager

 https://www.mongodbmanager.com/

MongoDB GUI tool with intelligent Shell for you.

NoSQL Manager for MongoDB
Desktop GUI tool for Mongo database management, administration and development.

 

截圖

相關文章
相關標籤/搜索