PHP mongoClient No candidate servers found

  • No candidate servers found

    Thrown when the driver cannot establish a connection to MongoDB (fulfilling the ReadPreferences, if specified).

   官方的解释。。。

   实际可能遇到的问题  检测mongo集群的 用户名密码如果校验不通过也会提示这个错误  检测设置的mongodb链接是否包含授权的数据库信息。。

   

   

posted @ 2016-05-27 14:12  ﹏Sakura  阅读(1462)  评论(1)    收藏  举报