0
将db设置为某个任意值后,我无法在shell中执行任何操作。为什么变量'db'不是只读的?
它知道错误或预期的行为吗?
> use tutorial
switched to db tutorial
> db
tutorial
> db = 5
5
> db
5
> show dbs
Fri Mar 23 17:18:40 TypeError: db.getMongo is not a function shell/utils.js:1235
>
> use tutorial
Fri Mar 23 17:18:55 TypeError: db.getMongo is not a function shell/utils.js:1167
> db = 'tutorial'
tutorial
> show dbs
Fri Mar 23 17:19:38 TypeError: db.getMongo is not a function shell/utils.js:1235
患者:“当我这样做时会感到疼痛”。医生:“所以不要这样做” – 2012-03-23 18:35:53