当前位置:网站首页>Node mongodb installation
Node mongodb installation
2022-07-04 13:42:00 【Hua Weiyun】
MongoDB database
Definition :MongoDB Is a database based on distributed file storage . from C++ Language writing . For the purpose of WEB Applications provide scalable, high-performance data storage solutions .
MongoDB Is a product between relational and non-relational databases , Non-relational databases are the most versatile , Most like a relational database .
Installation address :https://www.MongoDB.com/try/download/community
Relational database and non relational database
Speaking of MongoDB We must introduce relational database and non relational database .
The most typical data structure of relational database is table , A data organization consisting of two-dimensional tabular models and their connections .
A non relational database is not strictly a database , It should be a collection of data structured storage methods , It can be document or key value equivalence . Such as ,map The same key value pair relationship .
Advantages of non relational database :
1、 Flexible format : The format for storing data can be key,value form 、 Document form 、 Picture form and so on , Document form 、 Picture form and so on , Flexible use , Wide application scenarios , Relational databases only support basic types .
2、 Fast :nosql You can use hard disk or ram as a carrier , The relational database can only use hard disk ;
3、 High scalability ;
4、 The cost is low :nosql Database deployment is simple , It's basically open source software .
shortcoming :
1、 Does not provide sql Support , The cost of learning and using is high ;
2、 No transactions ;
3、 The data structure is relatively complex , It's a little bit less in terms of complex queries .
PS: This time it's just for use , The front-end personnel have less requirements for their mastery than the back-end
MongoDB install
Database has been mentioned on the official website before msi Download it , Next, start installing
- Install as prompted , The first two choices next that will do
- And then you can use
custom
Customize the installation directory
- Next click next Can be installed
PS: There is a pit during installation , If you check
Install MongoDB Compass
, Then it will jam during installation , Because this isMongoDB
The visual interface provided , But when downloading, it will be downloaded from abroad .
MongoDB start-up
here ,MongoDB It's already installed , Now start to test whether it is successful
In the previously customized installation directory , There is one bin Folder , There are mongod.exe file , This program is used to start mongodb Server's .
Where you want to store data , Create a folder , such as db
, Here I am
And then in the previous bin In the folder , Use cmd Open the bread , Input mongod --dbpath=/mongodb/Server/data/db
Because we didn't specify mongodb The port number of the service , So it starts by default 27017 window .
Open the browser , Range address http://127.0.0.1:27017/, You can see the following information
It looks like you are trying to access MongoDB over HTTP on the native driver port.
MongoDB Visual interface
about MongoDB database , It's inconvenient to use it in the command controller interface all the time , have access to navicat, It can also be used directly MongoDB Provide a graphical interface Compass
.
Download address :https://www.MongoDB.com/try/download/compass?jmp=docs
Compass
The graphical interface can be used after it is basically downloaded and opened
Click on connect Button , Then it will connect to the local 27017 In the database .
After successful connection , Click the plus sign in the lower left corner of the interface +, You can create a database
Next, you can operate the database in the graphical interface
边栏推荐
- CA: efficient coordinate attention mechanism for mobile terminals | CVPR 2021
- Building intelligent gray-scale data system from 0 to 1: Taking vivo game center as an example
- CANN算子:利用迭代器高效实现Tensor数据切割分块处理
- Personalized online cloud database hybrid optimization system | SIGMOD 2022 selected papers interpretation
- Is the outdoor LED screen waterproof?
- Alibaba cloud award winning experience: build a highly available system with polardb-x
- Apache server access log access Log settings
- 高效!用虚拟用户搭建FTP工作环境
- C语言职工管理系统
- Cann operator: using iterators to efficiently realize tensor data cutting and blocking processing
猜你喜欢
A data person understands and deepens the domain model
[AI system frontier dynamics, issue 40] Hinton: my deep learning career and research mind method; Google refutes rumors and gives up tensorflow; The apotheosis framework is officially open source
MDK在头文件中使用预编译器时,#ifdef 无效的问题
Xue Jing, director of insight technology solutions: Federal learning helps secure the flow of data elements
The only core indicator of high-quality software architecture
Reinforcement learning - learning notes 1 | basic concepts
Master the use of auto analyze in data warehouse
CANN算子:利用迭代器高效实现Tensor数据切割分块处理
CANN算子:利用迭代器高效实现Tensor数据切割分块处理
Valentine's Day confession code
随机推荐
PostgreSQL 9.1 soaring Road
jsonp
N++ is not reliable
6 分钟看完 BGP 协议。
CA:用于移动端的高效坐标注意力机制 | CVPR 2021
8个扩展子包!RecBole推出2.0!
PostgreSQL 9.1 飞升之路
.NET 使用 redis
面向个性化需求的在线云数据库混合调优系统 | SIGMOD 2022入选论文解读
Node の MongoDB 安装
JVM系列——栈与堆、方法区day1-2
Go zero micro service practical series (IX. ultimate optimization of seckill performance)
[cloud native | kubernetes] in depth understanding of ingress (12)
Flet教程之 03 FilledButton基础入门(教程含源码)(教程含源码)
8 expansion sub packages! Recbole launches 2.0!
XILINX/system-controller-c/BoardUI/无法连接开发板,任意操作后卡死的解决办法
Implementation mode and technical principle of MT4 cross platform merchandising system (API merchandising, EA merchandising, nj4x Merchandising)
Samsung's mass production of 3nm products has attracted the attention of Taiwan media: whether it can improve the input-output rate in the short term is the key to compete with TSMC
Solution: how to delete the information of Jack in two tables with delete in one statement in Oracle
2022KDD预讲 | 11位一作学者带你提前解锁优秀论文