Mongodb – error failedtoparse: password must be URL encoded for mongodb:// URL:
when you log in to mongodb with @ password, an error is reported. Failedtoparse: password must be URL encoded for mongodb:// URL:
If the username or password includes the following characters:
@ is %40
we can replace the login password @ with %40.
After creating an Iam ordinary user, you can execute the following commands to log in to mongodb through the Iam user:
$ mongo --quiet mongodb://iam:'email@example.com:27017/iam_analytics?authSource=iam_analytics