当前位置:网站首页>Chapitre d'apprentissage mongodb: Introduction à la première leçon après l'installation
Chapitre d'apprentissage mongodb: Introduction à la première leçon après l'installation
2022-07-01 05:27:00 【Haanlen】
Démarragemongodb
Accès à l'installationmongodbDebinTable des matières
mongod --dbpath D:\frontapplication\mongodb\data\db
Entrez l'adressehttp://localhost:27017/

À ce stademongodbLe Service a commencé
InbinUn autre.DOSFenêtre,Démarrer la fenêtre de service ne pas fermer!!
Commandes d'exploitation liées à la base de données
Voir la base de données
show dbs;

Créer une base de données
use note_list;
Créer une bibliothèque lorsque la base de données n'existe pas,Basculer la base de données lorsqu'elle existe
Afficher le nom actuel de la base de données
db;

Vous pouvez voir que la nouvelle base de données n'existe pas dans la base de données , Pour voir si vous devez insérer une donnée dans la base de données 
Insérer une commande de données dans la base de données
db.note_list.insert({
title:'Hello Vue,Première leçon d'introduction',
date:'2022-03-01',
content: 'XXXXXXC'est génial.!'
});


Créer une collection
//db.createCollection(name, options)
db.createCollection('lists');
Voir la collection
show collections;

边栏推荐
- busybox生成的东西
- Is there any good website or software for learning programming? [introduction to programming]?
- Causes of short circuit of conductive slip ring and Countermeasures
- [RootersCTF2019]babyWeb
- Leetcode522- longest special sequence ii- hash table - String - double pointer
- Application and principle of ThreadPoolExecutor thread pool
- QT等待框制作
- More than one file was found with OS independent path ‘lib/armeabi-v7a/libyuv.so‘.
- Like cloud functions
- Deeply understand the underlying implementation principle of countdownlatch in concurrent programming
猜你喜欢

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

busybox生成的东西

Detailed explanation of set

Summary of spanner's paper

第05天-文件操作函数

How to hide browser network IP address and modify IP internet access?

提高企业产品交付效率系列(1)—— 企业应用一键安装和升级

Application of industrial conductive slip ring

Leetcode316- remove duplicate letters - stack - greedy - string

Things generated by busybox
随机推荐
busybox生成的东西
Introduction of 3D Modeling and Processing Software Liu Ligang, Chinese University of Science and Technology
Rust基础入门之变量绑定与解构
Rainbond结合NeuVector实践容器安全管理
Usage and principle of synchronized
Simple read / write verification of qdatastream
One click deployment of highly available emqx clusters in rainbow
Programmers dig "holes" to get rich: if they find a loophole, they will be rewarded 12.72 million yuan
Things generated by busybox
Leetcode316- remove duplicate letters - stack - greedy - string
2/15 (awk, awk conditions, awk processing design can perform additional tasks, and use awk array +for loop to realize advanced search)
Copier le matériel de conseils de bébé ne peut pas être vide, comment résoudre?
[data recovery in North Asia] a data recovery case of raid crash caused by hard disk drop during data synchronization of hot spare disk of RAID5 disk array
Causes of short circuit of conductive slip ring and Countermeasures
Web Security (x) what is OAuth 2.0?
[RootersCTF2019]babyWeb
How to start learning editing? Detailed analysis of zero basis
Detailed explanation of distributed global unique ID solution
複制寶貝提示材質不能為空,如何解决?
Single page application