skip to content
barorin&?

MongoDBコマンドメモ

/ 1 min read

Table of Contents

はじめに

MongoDBの基本コマンドです。

内容

Terminal window
# ログイン
$ mongo
# DB一覧
show dbs;
# コレクション一覧
use db\_name;
show collections;
# DB削除
use db\_name;
db.dropDatabase();
# コレクション削除
use db\_name;
db.collection\_name.Database();