mongos login problem

278 views
Skip to first unread message

超 王

unread,
Apr 27, 2012, 6:28:26 AM4/27/12
to mongodb-user
see blew. use auth it work. and use "-u -p" it sometimes do not
work.....

# /root/mongodb-linux-i686-2.0.4/bin/mongo admin -u sa -p
MongoDB shell version: 2.0.4
Enter password:
connecting to: admin
Fri Apr 27 18:25:32 uncaught exception: login failed
exception: login failed
# /root/mongodb-linux-i686-2.0.4/bin/mongo admin
MongoDB shell version: 2.0.4
connecting to: admin
> db.auth('sa','sa');
1
mongos>
bye

Kevin Matulef

unread,
Apr 27, 2012, 12:26:36 PM4/27/12
to mongod...@googlegroups.com
It coudl be an issue with how the password is parsed in the shell vs the interactive login.  If there are spaces in the password it could be related to this issue here (which has been fixed in 2.1.0):

超 王

unread,
Apr 29, 2012, 6:14:37 AM4/29/12
to mongodb-user
thank you . so at now time.i can just use auth function to work it
well :)
Reply all
Reply to author
Forward
0 new messages