无法使用身份验证通过Studio3T连接到mongodb数据库

无法使用身份验证通过Studio3T连接到mongodb数据库,mongodb,authentication,connection,localhost,studio3t,Mongodb,Authentication,Connection,Localhost,Studio3t,我正在使用Ubuntu16.04,我已经在mongodb中启用了授权,并通过以下方式创建了用户 use admin db.createUser( { user: "ABC", pwd: "XYZ", roles: [ { role: "root", db: "admin" } ] } ); Connection failed. SERVER [localhost:27017] (Type: UNKNOWN) |_/ Connection error (Mon

我正在使用Ubuntu16.04,我已经在mongodb中启用了授权,并通过以下方式创建了用户

use admin
db.createUser(
  {
    user: "ABC",
    pwd: "XYZ",
    roles: [ { role: "root", db: "admin" } ]
  }
);
Connection failed.

SERVER [localhost:27017] (Type: UNKNOWN) 
|_/ Connection error (MongoSocketWriteException): Exception sending message
|____/ Socket error: Connection reset

Details:
Timed out after 30000 ms while waiting to connect. Client view of cluster state is {type=UNKNOWN, servers=[{address=localhost:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketWriteException: Exception sending message}, caused by {java.net.SocketException: Connection reset}}]
重启mongodb后,通过终端连接到mongodb时,服务器授权工作正常

sudo service mongod restart
mongo -u ABC -p --authenticationDatabase admin
但是当我试图用Studio3T连接到本地主机mongodb数据库时

Authentication Mode : "Basic (MONGODB-CR or SCRAM-SHA-1)"
username : (ABC)
password : (XYX)
Authentication DB: (admin)   
我收到如下错误消息

use admin
db.createUser(
  {
    user: "ABC",
    pwd: "XYZ",
    roles: [ { role: "root", db: "admin" } ]
  }
);
Connection failed.

SERVER [localhost:27017] (Type: UNKNOWN) 
|_/ Connection error (MongoSocketWriteException): Exception sending message
|____/ Socket error: Connection reset

Details:
Timed out after 30000 ms while waiting to connect. Client view of cluster state is {type=UNKNOWN, servers=[{address=localhost:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketWriteException: Exception sending message}, caused by {java.net.SocketException: Connection reset}}]

在当前版本中,我也面临同样的问题:连接失败。服务器[localhost:27017](类型:未知)|/连接错误(MongoSocketWriteException):异常发送消息|(u)(u)/SSL错误:远程主机在握手期间关闭连接|(u)(u)u(u)/I/O错误:SSL对等关闭不正确解决方案?