2015-12-16 297 views
2

我使用dbeaver连接到需要用户名和密码的远程mongodb服务器。我可以用命令mongo -u spider -p spider 10.20.88.19/spider连接到它,但用dbeaver失败。无法用dbeaver连接到远程mongodb

enter image description here

我已经尝试了所有这些凭证的机制,但没有奏效。当我使用平原机制,它说

DBException:错误连接到蒙戈实例[10.20.88.19] com.mongodb.MongoTimeoutException:MongoTimeoutException:30000个后MS超时在等待服务器匹配ReadPreferenceServerSelector {readPreference =初级}。客户端集群状态视图是{type = UNKNOWN,servers = [{address = 10.20.88.19:27017,type = UNKNOWN,state = CONNECTING,exception = {com.mongodb.MongoSecurityException:异常验证MongoCredential {mechanism = PLAIN,userName = 'com.mongodb.MongoCommandException:命令失败,错误2:'Unsupported mechanism PLAIN'10.20.88.19:27017。'spider',source ='spider',password =,mechanismProperties = {}}}。完全响应是{“supportedMechanisms”:[“MONGODB-CR”,“MONGODB-X509”,“SCRAM-SHA-1”],“ok”:0.0,“code”:2,“errmsg”:“Unsupported mechanism普通纸”}}}]

而且使用MongoDB的-CR

DBException时:错误连接到蒙戈实例[10.20.88.19] com.mongodb.MongoCommandException:MongoCommandException:命令失败,错误13:服务器10.20.88.19:27017上'未授权管理员执行命令{listDatabases:1}'。完整的响应{ “OK”:0.0, “ERRMSG”: “未授权的管理员执行命令{listDatabases:1}”, “密码”:13}

回答

0

您需要在运行jsonListener你数据库服务器或应用程序服务器,然后连接到该jsonListenner框和端口。

+0

你有任何教程的链接? –