Guys im currently using Prisma with MongoDB but i ...
# mongodb
v
Guys im currently using Prisma with MongoDB but i have the following problem
Error: P1001
`Can't reach database server at `cluster0...`:`27019`` `Please make sure your database server is running at `cluster0...`:`27019`.` Whenever i try to use
npx prisma db pull
in an existing MongoDB data base This is my DATABASE_URL
mongodb+srv://<username>:<password>@<cluster>/<database>?retryWrites=true&w=majority
I'm currently connected to MongoDB Atlas, and the cluster is allowing connections from all ip's. How can i solve this?
1
s
Did you copy the connection string directly from the Atlas UI?
👀 1
v
Yes i copied it directly For example lets say the username an password its test and test. This would be the url: `mongodb+srv://test:test@cluster0.awkua.mongodb.net/database``
And also i can access it via MongoDB Compass if i copy them exactly
Oh what the heck for some reason my university has blocked connection to any type of VPS or cluster for mongodb so that's why the connection was blocked
s
Oh!! We'll that makes sense haha
👋 1
v
I dont know if thats a goood practice but know i can access
Lol!
Its solved thank you!
👍 1
s
No prob!
1