Failed to authenticate to mongodb
Deploying a MongoDB database from the UI, automatically creates a database named "test" if you connect to the mongourl that plugin gives you, you can only modify that database, if i try to put /main at the end of the URI i get an authentication failure even tho everything is the same, when deploying the plugin it should allow you to select the name of the database you want instead of creating the "test" database. How can i connect to the "whatsapp" database?
Currently trying:
mongodb://mongo:[email protected]:6204/whatsapp
but this returns the authentication failure
mongodb://mongo:[email protected]:6204
connects successfully but only to the "test" database that was created automatically.
The project is in typescript and i'm using mongoose, didn't had this issue while using ATLAS18 Replies
Project ID:
8cced2b9-8279-433a-b3da-fdd6b88a3b56
8cced2b9-8279-433a-b3da-fdd6b88a3b56
even if i manually delete the "test" database it self creates again when connecting
normally I'd just at the fact you said WhatsApp, but Angelo has told me you are using whatsapp for business, so you're safe lol
so you have created a new database named
whatsapp
right?yes sir
it even shows up in compass
connecting without /whatsapp at the end works just fine, the problem that it auto creates a database named "test"
using /whatsapp throws an autentication error
https://mongoosejs.com/
right?
yes, i'm using mongoose
Connecting like this:
mongodb://mongo:[email protected]:7063/
works
Connecting like this: mongodb://mongo:[email protected]:7063/whatsapp
doesnt
even tho the database exists, and even if it doesn't it would auto create iti know, one sec
Thank u
specify your
whatsapp
database thereokay let me try ibe sec
it connects, but it still uses the "test" database
ok wait im braindead didn't commit
did you omit the test from the original url?
lol
yes, let me redeploy
ok, success
thank you
no problem!