刚安装好的mongoDB(Windows-x64) 无法连接?
时间: 2016-03-29来源:开源中国
前景提要
HDC调试需求开发(15万预算),能者速来!>>>
就在本地 都无法连接
版本是3.2
系统服务已经添加,也启动了。
到安装目录下 添加了全局用户 并认证了
然后新建库,库里也添加了 同样的用户 并认证了




然后在库里 建了表,并且 添加了数据,都可以查到了。

但是 使用MongoVUE连接,连不上





错误的详细信息
Connection was refused Unable to connect to server 127.0.0.1:27017: Invalid credential for database 'navi'.. Type: MongoDB.Driver.MongoConnectionException Stack: 在 MongoDB.Driver.Internal.DirectMongoServerProxy.Connect(TimeSpan timeout, ReadPreference readPreference) 在 MongoDB.Driver.MongoServer.Connect(TimeSpan timeout) 在 MongoDB.Driver.MongoServer.Connect() 在 MangoUI.MMongo.QSDlL5xzK686iCExThO(Object ) 在 MangoUI.MMongo.Open(Boolean mustWrite) 在 MangoUI.MMongo.Open() 在 MangoUI.MConnection.get_IsValid() 在 MangoUI.WinConnect.SCOjR9kYRPerNNngykW(Object ) 在 MangoUI.WinConnect.btnTest_Click(Object sender, EventArgs e) Invalid credential for database 'navi'. Type: MongoDB.Driver.MongoAuthenticationException Stack: 在 MongoDB.Driver.Communication.Security.MongoCRAuthenticationProtocol.Authenticate(MongoConnection connection, MongoCredential credential) 在 MongoDB.Driver.Communication.Security.Authenticator.Authenticate(MongoCredential credential) 在 MongoDB.Driver.Communication.Security.Authenticator.Authenticate() 在 MongoDB.Driver.Internal.MongoConnection.Open() 在 MongoDB.Driver.Internal.MongoConnection.GetNetworkStream() 在 MongoDB.Driver.Internal.MongoConnection.SendMessage(BsonBuffer buffer, Int32 requestId) 在 MongoDB.Driver.Internal.MongoConnection.SendMessage(MongoRequestMessage message) 在 MongoDB.Driver.Operations.CommandOperation`1.Execute(MongoConnection connection) 在 MongoDB.Driver.MongoServerInstance.RunCommandAs[TCommandResult](MongoConnection connection, String databaseName, IMongoCommand command) 在 MongoDB.Driver.MongoServerInstance.Ping(MongoConnection connection) 在 MongoDB.Driver.MongoServerInstance.Connect() 在 MongoDB.Driver.Internal.DirectMongoServerProxy.Connect(TimeSpan timeout, ReadPreference readPreference) Command 'authenticate' failed: auth failed (response: { "ok" : 0.0, "errmsg" : "auth failed", "code" : 18 }) Type: MongoDB.Driver.MongoCommandException Stack: 在 MongoDB.Driver.Operations.CommandOperation`1.Execute(MongoConnection connection) 在 MongoDB.Driver.Communication.Security.MongoCRAuthenticationProtocol.RunCommand(MongoConnection connection, String databaseName, IMongoCommand command) 在 MongoDB.Driver.Communication.Security.MongoCRAuthenticationProtocol.Authenticate(MongoConnection connection, MongoCredential credential) Inputs:: Command: authenticate Ok: False ErrorMsg: auth failed Request: { "authenticate" : 1, "user" : "dbuser", "nonce" : "510c86a1e874bc3b", "key" : "e683510addaa1f6afebe8c9736d2a945" } Response: { "ok" : 0.0, "errmsg" : "auth failed", "code" : 18 }





说 认证失败,是 用户认证失败吗?可是我已经使用 auth 命令认证了啊。。。

科技资讯:

科技学院:

科技百科:

科技书籍:

网站大全:

软件大全:

热门排行