adminMongo icon indicating copy to clipboard operation
adminMongo copied to clipboard

Username containing an unescaped at-sign

Open zhangzhentao opened this issue 7 years ago • 2 comments

如果密码中包含@特殊字符就会出现这个问题,请问如何处理? This problem occurs if the password contains the @ special character. How do you handle this?

zhangzhentao avatar Sep 27 '18 08:09 zhangzhentao

Hi,

Did you manage to deal with this problem? I am having password with characters like '$' or '\', and so far I could not connect mongo db via adminMongo. Is this not supported, or I am trying to add datasource inproperly?

Nevaan avatar Feb 05 '19 10:02 Nevaan

Hi,

this is possible: you need to encode the string with percentage-encoding, and then add information about authentication database at the end of mongoConnectionUrl,like: ...?authSource=admin

Nevaan avatar Feb 07 '19 09:02 Nevaan