ablog

不器用で落着きのない技術者のメモ

MongoDB メモ

  • データベースを削除する
$ mongo
MongoDB shell version: 2.6.12
connecting to: test
Welcome to the MongoDB shell.
For interactive help, type "help".
For more comprehensive documentation, see
	http://docs.mongodb.org/
Questions? Try the support group
	http://groups.google.com/group/mongodb-user
> dbs
2018-05-17T17:29:34.681+0000 ReferenceError: dbs is not defined
> show dbs
admin  (empty)
local  0.078GB
ycsb   0.453GB
> use ycsb
switched to db ycsb
> db.dropDatabase();
{ "dropped" : "ycsb", "ok" : 1 }
>
>
> exit
bye