import .json to Mongodb
I use mongoimport command to import a json file to my mongodb. prompt me type a user name. where can I find it?
On railway, I only see a window to write json, but can't to import json file.
16 Replies
Project ID:
c7cb0789-9eba-454f-8499-d7ee14e026af
c7cb0789-9eba-454f-8499-d7ee14e026af
Have anyone here?
You should be able to use the mongo cli locally todo this.
To get the envs either get them from the mongodb service in your project or use the railway cli.
"Enter password for mongo user", I don 't know my password.
I have never set username of mongo.
its mongo
? I don't understand your meaning.
the username is mongo
if you check the connection string in the settings of your mongodb service youll notice this
mongo:** <-- the star is the password the username is mongo
ah. I know.Thanks.
Are you still here?
please delete that and reset your password
if you're using the uri you do not need the username or password fields that's likely your issue.
also get this error: error connecting to host: failed to connect to mongodb
please delete the other message you sent and reset the password on your database
I deleted it
please stop posting you password bud
you will need to use the site to change it i believe but you really need to stop posting it.
fine