MongoDB connection and setting database

Hi @Zsolt_Gombocz

The documentation specifies the path component of the uri as the defaultauthdb.
https://www.mongodb.com/docs/manual/reference/connection-string/

So the option is doing what is says, changing the authentication source(database)

However by appending ?authSource=admin to the connection string it should work.

1 Like