我真的不知道为什么,但是当我尝试做一些 mongodump 时,我开始看到一张*
桌子。所以我不能让 mongodump 工作,因为它会尝试保存*
数据库,这意味着文件名不正确..
无论如何,我无法从 cmd 行删除:
> show dbs
* (empty)
__applicationManager 0.03125GB
__sessions 0.03125GB
admin (empty)
local (empty)
migration 0.03125GB
> use *
... // enter once
... // enter again and happens the following
error2:invalid string position
> use admin
switched to db admin
> use *
... db.dropDatabase()
Mon Nov 12 10:50:45 SyntaxError: unterminated string literal (shellhelp2):1
> show dbs
* (empty)
__applicationManager 0.03125GB
__sessions 0.03125GB
admin (empty)
local (empty)
migration 0.03125GB
试过评论:
> db.getCollection("*").drop()
false
> show dbs
* (empty)
__applicationManager 0.03125GB
__sessions 0.03125GB
admin (empty)
local (empty)
migration 0.03125GB
test (empty)