当前位置:网站首页>Mongodb learning chapter: introduction after installation lesson 1
Mongodb learning chapter: introduction after installation lesson 1
2022-07-01 05:28:00 【HaanLen】
start-up mongodb
Enter the installation mongodb Of bin Catalog
mongod --dbpath D:\frontapplication\mongodb\data\db
Enter the address http://localhost:27017/

Now explain mongodb Service started
stay bin Open another one DOS window , Do not close the startup service window !!
Database related operation commands
view the database
show dbs;

Create database
use note_list;
Create a library when the database does not exist , Switch the database when it exists 
View the current database name
db;

You can see that the newly created database does not exist in the database , To view, you need to insert a piece of data into the database 
Insert a data command into the database
db.note_list.insert({
title:'Hello Vue, Introduction lesson one ',
date:'2022-03-01',
content: 'XXXXXX excellent !'
});


Create set
//db.createCollection(name, options)
db.createCollection('lists');
View set
show collections;

边栏推荐
- Deeply understand the underlying implementation principle of countdownlatch in concurrent programming
- 3D建模与处理软件简介 刘利刚 中国科技大学
- Summary of spanner's paper
- 小程序常用组件小结
- Global and Chinese market of high-end home theater 2022-2028: Research Report on technology, participants, trends, market size and share
- Programmers dig "holes" to get rich: if they find a loophole, they will be rewarded 12.72 million yuan
- Unity drags and modifies scene camera parameters under the editor
- Global and Chinese market for instant messaging security and compliance solutions 2022-2028: Research Report on technology, participants, trends, market size and share
- Precautions for use of conductive slip ring
- How to create a progress bar that changes color according to progress
猜你喜欢

Leetcode1497- check whether array pairs can be divided by K - array - hash table - count

Things generated by busybox

And search: the suspects (find the number of people related to the nth person)

Redis database deployment and common commands

Set set detailed explanation

Typeorm framework

Detailed explanation of set

tar命令

Unity项目心得总结

C# wpf 使用DockPanel实现截屏框
随机推荐
实战:redux的基本使用
Use and principle of reentrantlock
HDU - 1024 Max Sum Plus Plus(DP)
Flutter can refresh data every time the interface comes in
3D建模与处理软件简介 刘利刚 中国科技大学
云原生存储解决方案Rook-Ceph与Rainbond结合的实践
积分商城游戏能够给商家带来什么?怎么搭建积分商城?
Flutter 实现每次进来界面都刷新数据
In depth understanding of condition source code interpretation and analysis of concurrent programming
複制寶貝提示材質不能為空,如何解决?
Data consistency between redis and database
担心侵权?必备无版权素材网站分享,不用担心视频剪辑缺素材
Use and principle of wait notify
el-cascader回显失败;el-cascader回显不出来
Rust基础入门之变量绑定与解构
Use and principle of AQS related implementation classes
Youqitong [vip] v3.7.2022.0106 official January 22 Edition
Tcp/ip explanation (version 2) notes / 3 link layer / 3.2 Ethernet and IEEE 802 lan/man standards
Leetcode316- remove duplicate letters - stack - greedy - string
Vmware workstation network card settings and three common network modes