mLab 抛出身份验证错误代码 18

mLab throws Authentication error code 18

我正在尝试在我的 node.js 服务器上使用 mLab。我的mongoDBshell版本是v3.6.2,数据库的mongod版本是3.4.11(MMAPv1) 并使用 mac os 高山脉。 我正在使用我的数据库用户的用户名和密码

name: 'MongoError',
message: 'Authentication failed.',
ok: 0,
errmsg: 'Authentication failed.',
code: 18,
codeName: 'AuthenticationFailed' 

验证时,使用 'username''password' 而不是 <username><password>。去掉 '<''>'