当前位置:网站首页>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;

边栏推荐
- Unity项目心得总结
- Spanner 论文小结
- QDataStream的簡單讀寫驗證
- TypeORM 框架
- Redis database deployment and common commands
- Worried about infringement? Must share copyrightless materials on the website. Don't worry about the lack of materials for video clips
- 新手在挖财开通证券账户安全吗?
- Unity drags and modifies scene camera parameters under the editor
- Global and Chinese market of 3D design and modeling software 2022-2028: Research Report on technology, participants, trends, market size and share
- Txncoordsender of cockroachdb distributed transaction source code analysis
猜你喜欢

云原生存储解决方案Rook-Ceph与Rainbond结合的实践

Redis database deployment and common commands

Leetcode top 100 questions 1 Sum of two numbers

Copy baby prompt: material cannot be empty. How to solve it?

0xc000007b the application cannot start the solution normally (the pro test is valid)

轻松上手Fluentd,结合 Rainbond 插件市场,日志收集更快捷

Unity project experience summary

Use and principle of AQS related implementation classes

Rainbond结合NeuVector实践容器安全管理
![[RootersCTF2019]babyWeb](/img/b4/aa8f8e107a9dacbace72d4717b1834.png)
[RootersCTF2019]babyWeb
随机推荐
AcWing 886. Finding combinatorial number II (pretreatment factorial)
0xc000007b应用程序无法正常启动解决方案(亲测有效)
3D建模與處理軟件簡介 劉利剛 中國科技大學
Use and principle of reentrantlock
Day 05 - file operation function
Is there any good website or software for learning programming? [introduction to programming]?
如何开始学剪辑?零基础详细解析
el-cascader回显失败;el-cascader回显不出来
Introduction of 3D Modeling and Processing Software Liu Ligang, Chinese University of Science and Technology
How to meet the requirements of source code confidentiality and source code security management
Fluentd is easy to use. Combined with the rainbow plug-in market, log collection is faster
数字金额加逗号;js给数字加三位一逗号间隔的两种方法;js数据格式化
Deeply understand the underlying implementation principle of countdownlatch in concurrent programming
Set集合詳細講解
Global and Chinese market for instant messaging security and compliance solutions 2022-2028: Research Report on technology, participants, trends, market size and share
[ffmpeg] [reprint] image mosaic: picture in picture with wheat
Unit testing with mongodb
Lock free concurrency of JUC (leguan lock)
基于TI DRV8424驱动步进电机实现调速和行程控制
LevelDB源码分析之LRU Cache