Skip to content
ohsudo, Home

Tags

#connection-string

Authentication failed
Databases

MongoDB "Authentication failed": the authSource is usually what's wrong

Fix MongoDB "Authentication failed": set authSource correctly, encode special characters in the URI, check which database holds the user, and handle Docker volumes.

Beginner · 4 min read