先cmd切换到mongodb安装目录的bin目录下,然后输入mongo+回车登录;然后输入use admin切换到admin数据库下;然后db.auth('usr','pwd');登录admin数据库;然后use test切换到test数据库;然后show users列出test数据库的所有用户。