elmah-mongodb icon indicating copy to clipboard operation
elmah-mongodb copied to clipboard

Different database to connection string

Open jamescrosswell opened this issue 10 years ago • 0 comments

When using Mongo with authentication, you have to connect to the admin database initially. After this you can work with collections in any other databases that you have access to.

I think elmah-mongdb assumes that you want to store the Elmah error logs in the database specified in the connection string though... it would be great if the database could be [optionally] configured separately though so that one database (the admin database) was used to establish the connection to MongoDB but another database was used for error logs.

Cheers, James

jamescrosswell avatar Aug 27 '13 10:08 jamescrosswell