今天突然发现删除一个数据库后,虽然在show dbs后发现已经没有这个数据库了,但是执行db后发现返回的还是这个数据库的名字,这是怎么回事呢?
> use hellol
switched to db hellol
> db.dropDatabase()
{ "ok" : 1 }
> db
hellol
...全文
12回复打赏收藏
数据库删除问题
今天突然发现删除一个数据库后,虽然在show dbs后发现已经没有这个数据库了,但是执行db后发现返回的还是这个数据库的名字,这是怎么回事呢? > use hellol switched to db hellol > db.dropDatabase() { "ok" : 1 } > db hellol