Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
如何查看最后一次操作的错误信息呢?
db.runCommand( { getLastError: 1, w: 2, wtimeout:5000 } ) https://docs.mongodb.com/manual/reference/command/getLastError/#examples
@leo
收藏~
開發時沒有複製集,使用 db.runCommand( { getLastError: 1 } ) 就可以了
不然會有 errmsg: cannot use 'w' > 1 when a host is not replicated
与 萌阔论坛 的连接断开,我们正在尝试重连,请耐心等待