Dropping a database is a big deal. The current shell command db.dropDatabase() defaults to the current selected database and drops the database without confirmation.
I would suggest we add an argument to the command that explicitly names the database so that accidental drops don't occur because the wrong database was "used" in a previous command.
The shell should also ask for confirmation before performing this action.
- is duplicated by
-
SERVER-31326 dropDatabase should be harder
- Closed
- is related to
-
SERVER-36803 Ability to prompt for user input in shell
- Closed