$ brew tab mongodb/brew
# 설치 가능한 mongodb 검색
$ brew search mongodb
# mongodb-community@<version> 설치
$ brew install mongodb-community@5.0
# 설치 버전 확인
$ mongo -version
# MongoDB 서버 실행
$ brew services start mongodb-community@5.0
# MongoDB 실행
$ mongo
# MongoDB 서버 종료
$ brew services stop mongodb-community@5.0
$ brew update
$ brew upgrade mongocli
https://www.mongodb.com/docs/mongocli/v1.29/install/
db
- database list
show dbs
use DBName
show roles
# db 사용
> use <db>
# 현재 사용중인 db
> db
> show collections
> show users
> db.createUser({ user: 'cha', pwd: '1234', roles: [{ role: "readWrite", db: "db" }] })
> db.dropUser('cha')
https://www.prisma.io/dataguide/mongodb/creating-dbs-and-collections
https://jake-seo-dev.tistory.com/171
https://webisfree.com/2017-06-21/mongodb-%EC%9E%90%EC%A3%BC-%EC%82%AC%EC%9A%A9%EB%90%98%EB%8A%94-%EC%BB%A4%EB%A7%A8%EB%93%9C-%EC%95%8C%EC%95%84%EB%B3%B4%EA%B8%B0
https://www.prisma.io/docs/getting-started/setup-prisma/start-from-scratch/mongodb/creating-the-prisma-schema-typescript-mongodb
https://www.prisma.io/docs/reference/database-reference/connection-urls
https://mongodb.github.io/node-mongodb-native/3.6/tutorials/connect/#:~:text=const%20MongoClient%20%3D%20require('mongodb,connect%20to%20the%20Server%20client.