我正试图通过mLab连接到现有的rails console数据库。每次查询(例如GameScore.all.count、User.all.count)时,都会返回以下错误消息:
Mongo::Error::NoServerAvailable: No server is available matching preference: #<Mongo::ServerSelector::Primary:0x70240308536180 tag_sets=[] max_staleness=nil> using server_selection_timeout=30 and local_