ERROR P1001: Can't reach database server
Hi everyone, I'm getting the error message that my database server ist not reachable. But the server is running I can connect to the database with DataGrip.
9 Replies
I've tried this command
is your connection url correct?
@Spctr
yes, I can use it within datagrip
do you try it from the same system?
when not, check your firewall maybe
i've tried it with the same string in datagrip on my current device in the same network.. only my ide doesn't like it
i don't know why .. but it worked at home on my pc .. i haven't changed anything
What type of database and what type of connection string is it (hiding any username/password/ip if you choose to show it)? For example if it has TLS certs in it, know that those are handled differently by prisma than regular connection strings.
might be a cache issue on the IDE part. i need to restart my IDE sometimes for it recognize changes in prisma client as an example
mysql database and the default string with username and password and no certs it just works at home
Where is the failure, in like a CI or on a AWS instance or somewhere else? If so, it may not have outbound permissions or something
Or is there an unstable connection between the two, if so, you may need to increase the timeout to get the pool set up from this other location