나의 작은 valley

[MongoDB] How to install MongoDB in vscode (ENG) 본문

Computer Science/[MongoDB]

[MongoDB] How to install MongoDB in vscode (ENG)

붕옥 아이젠 2023. 9. 24. 17:15
728x90

What is MongoDB

MongoDB is a NoSQL database management system that is designed to store, manage, and retrieve data in a flexible and scalable manner. It is known for its document-oriented data model, which means it stores data in a format similar to JSON (JavaScript Object Notation) document rather than SQL Table

 

Such As..

``
{
    name: '김정헌',
    age: '21',
    major: 'software Engineering',
}
``

 

Collation and Database

> Collation : A group of documents
> Database : A Group of collations

 

 

Install mongoDB

MongoDB Download: https://www.mongodb.com/try/download

Resource -> server -> installation -> Community Edition Version -> Select OS -> Download (make sure checking the install mongoDB Campass button)

 

 

cf) mongoDB Campass : MongoDB GUI. 

 

 

Install mongosh (Which is a cmd)

installation -> MongoDB shell (mongosh) -> click Download mongosh button

 

 

mongosh path setting

Step 1)

go to mongosh folder -> bin -> copy the path of .exe (Mycase "C:\Program Files\mongosh-1.10.6-win32-x64\mongosh-1.10.6-win32-x64\bin")

 

Step 2)
go to mongo folder -> bin -> copy the path of .exe (Mycase C:\Program Files\MongoDB\Server\7.0\bin")

 

Step 3)

Edit the system environment variables(시스템 환경 변수 설정) -> Advanced(고급) -> Enviroment variables(환경 변수) -> System variables(환경 변수)</br> -> Path click , paste MongoDB shell path and mongo path in Path(Path 값란에 몽고쉬, 몽고 위치값 복붙) 

 

 

Using MongoSH in VS code

Open Vscode -> Go to Extensions -> Search MongoDB -> install 

 

728x90

'Computer Science > [MongoDB]' 카테고리의 다른 글

[MongoDB] CRUD 사용 + Node.js  (0) 2023.10.04
[MongoDB] MongoDB Atlas 사용법  (0) 2023.09.24
[MongoDB] How to use MongoDB 2 (ENG)  (0) 2023.09.24
[MongoDB] How to use MongoDB 1 (ENG)  (0) 2023.09.24
[MongoDB] INTRO  (0) 2023.09.16
Comments