# mongo 서버 실행
$ **mongod**
# mongo shell 실행
$ **mongosh**
Current Mongosh Log ID: 6450f81341e87002c619b106
Connecting to:          mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+1.8.0
Using MongoDB:          6.0.5
Using Mongosh:          1.8.0

For mongosh info see: <https://docs.mongodb.com/mongodb-shell/>

------
   The server generated these startup warnings when booting
   2023-05-02T20:46:02.400+09:00: Access control is not enabled for the database. Read and write access to data and configuration is unrestricted
   2023-05-02T20:46:02.401+09:00: This server is bound to localhost. Remote systems will be unable to connect to this server. Start the server with --bind_ip <address> to specify which IP addresses it should serve responses from, or with --bind_ip_all to bind to all interfaces. If this behavior is desired, start the server with --bind_ip 127.0.0.1 to disable this warning
------
...

# 아래 처럼 변한 것을 알 수 있다.
**test>**

데이터베이스 및 컬렉션 생성

test> use nodejs
switched to db nodejs

nodejs>
nodejs> show dbs
admin   132.00 KiB
config   92.00 KiB
local    72.00 KiB

nodejs> db
nodejs