Mongodb客户端无法连接到远程数据库

时间:2015-12-23 18:51:08

标签: mongodb

我正在运行以下命令来连接到远程数据库:

mongo -u webui -p *** --verbose mighty5.***.univa.com:27017/univa

此命令适用于一台计算机,但我的另一台计算机出现故障。似乎在我的其他计算机上,此命令尝试连接到本地数据库(并且我在此计算机中没有本地数据库)。

即使我提供了密码,程序也会再次问我

这是输出:

$ mongo -u webui -p *** --verbose mighty5.***.univa.com:27017/univa
MongoDB shell version: 3.2.0
Enter password: 
connecting to: abc
2015-12-23T13:48:41.525-0500 D NETWORK  [thread1] creating new connection to:127.0.0.1:27017
2015-12-23T13:48:41.525-0500 D COMMAND  [ConnectBG] BackgroundJob starting: ConnectBG
2015-12-23T13:48:41.525-0500 D NETWORK  [thread1] connected to server 127.0.0.1:27017 (127.0.0.1)
2015-12-23T13:48:41.525-0500 D NETWORK  [thread1] connected connection!
2015-12-23T13:48:41.527-0500 D -        [thread1] User Assertion: 18:Authentication failed.
2015-12-23T13:48:41.527-0500 D -        [thread1] User Assertion: 18:Authentication failed.
2015-12-23T13:48:41.527-0500 E QUERY    [thread1] Error: Authentication failed. :
DB.prototype._authOrThrow@src/mongo/shell/db.js:1395:16
@(auth):6:1
@(auth):1:2

2015-12-23T13:48:41.527-0500 D -        [thread1] User Assertion: 12514:login failed
2015-12-23T13:48:41.527-0500 I QUERY    [thread1] MozJS GC prologue heap stats -  total: 1509422 limit: 0
2015-12-23T13:48:41.528-0500 I QUERY    [thread1] MozJS GC epilogue heap stats -  total: 1222 limit: 0
2015-12-23T13:48:41.528-0500 I QUERY    [thread1] MozJS GC prologue heap stats -  total: 3198 limit: 0
2015-12-23T13:48:41.529-0500 I QUERY    [thread1] MozJS GC epilogue heap stats -  total: 6 limit: 0
2015-12-23T13:48:41.529-0500 D -        [main] User Assertion: 12514:login failed
exception: login failed

我不知道如何调试这个问题,任何想法都会非常感激

提前谢谢!

0 个答案:

没有答案