database connection error

dahiana-morenoTRIAL

a year ago

I am trying to create a connection from the database created in railway with the backend and the connection fails. I have already carried out several projects to see if that was it and the same problem continues, the connection always fails.

.

Error connecting to the db SequelizeConnectionError: connect ETIMEDOUT

I add odo equal to how it appears in the database and the problem continues, even in a project I was able to see style only when I changed the host to localhost but obviously it did not work since I am not local.

7 Replies

a year ago

Please make sure you are using all the correct database credentials.


dahiana-morenoTRIAL

a year ago

even put the same names

Attachments


a year ago

Make sure you are using all the correct database credentials in code.


dahiana-morenoTRIAL

a year ago

locally everything works perfectly the problem occurs when uploading it to railway


a year ago

The problem is with the code, please make sure you are using all the correct database credentials.


dahiana-morenoTRIAL

a year ago

I tried to host the database on another server other than railway and it worked for me, but because railway does not allow it


a year ago

This is not a platform issue or any kind of limitation, you have something misconfigured.