Skip to content
Discussion options

You must be logged in to vote

I figured the issue out, I needed to add this to ?authSource=admin

In the mongo shell, I need to change the table to "admin" before I can authenticate. Maybe Compass adds this for you automatically.

For anyone interested the working env variable looks like this:

DATABASE_URL="mongodb://myUserAdmin:<password>@localhost:27017/trimm?authSource=admin"

Thanks for all your help @austincrim

Replies: 17 comments 34 replies

Comment options

You must be logged in to vote
2 replies
@RichardBray
Comment options

@austincrim
Comment options

Comment options

You must be logged in to vote
8 replies
@mbledkowski
Comment options

@austincrim
Comment options

@antraxbr666
Comment options

@vitosdeveloper
Comment options

@SDAravind
Comment options

Answer selected by RichardBray
Comment options

You must be logged in to vote
2 replies
@janpio
Comment options

@tkssharma
Comment options

Comment options

You must be logged in to vote
1 reply
@tkssharma
Comment options

Comment options

You must be logged in to vote
7 replies
@Barlow1
Comment options

@benlyazid
Comment options

@vicentematus
Comment options

@ali-d-coded
Comment options

@mohammadsaadshafiq
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@IsaacHatilima
Comment options

@mohammadsaadshafiq
Comment options

@alialshara94
Comment options

@brillaintlcd
Comment options

@brillaintlcd
Comment options

Comment options

You must be logged in to vote
1 reply
@raul-repos
Comment options

Comment options

You must be logged in to vote
7 replies
@ridoystarlord
Comment options

@brillaintlcd
Comment options

@ridoystarlord
Comment options

@brillaintlcd
Comment options

@ridoystarlord
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment