// First show what databases have you gotten
show dbs
// then, use the database name that you want to drop
use YOUR_DATABASE_NAME
// now you can drop it
db.dropDatabase()
// show collections should be empty now
show collections
3
0
drop mongodb 데이터베이스
db.dropDatabase()
3
0
mongodb 드롭 db
db.dropDatabase()
1
0
몽고 쉘에 db 를 떨어 뜨리는 방법
use DB_NAME // go to the db you want to delete
db.dropDatabase()
show dbs
// droppped db will not be shown