Home MongoDB各种疑难杂症
Post
Cancel

MongoDB各种疑难杂症

很久没用mongo了,上次用还是两年前用的,发现连上去废了,报了个这玩意。什么鬼!

1
JavaScript execution failed: listDatabases failed:{ "note" : "from execCommand", "ok" : 0, "errmsg" : "not master" } at src/mongo/shell/mongo.js:L46

解决方案,执行下就好了。

1
rs.slaveOk()
This post is licensed under CC BY 4.0 by the author.