use CREDIT_MP_OFFLINE db.createUser({user:'test',pwd:'123456',roles:[{role:'dbOwner', db:'testdb'}]}); db.auth('test','123456')