MySQL connection refused
matheusmiguel
PROOP

3 months ago

Hello.

For the past few days, all my MySQL databases hosted on Railway have been throwing the following error: mysqli::real_connect(): (HY000/2002): Connection refused.

We haven't changed anything regarding the connection or settings. What could have happened, and how can I resolve this?

Closed$20 Bounty

6 Replies

Railway
BOT

3 months ago

This thread has been opened as a public bounty so the community can help solve it. The thread and any further activity are now visible to everyone.

Status changed to Open Railway • 3 months ago


Have you tried redeploying the service?


matheusmiguel
PROOP

3 months ago

Yes, twice.


Are there any errors in the logs?


If no changes were made on your end. Try to redeploy source image by selecting your service, then press Ctrl+k, then redeploy source image. This might work better than a normal redeploy.


matheusmiguel
PROOP

3 months ago

I switched servers, and it worked correctly. My question is: is there a firewall or some mechanism on Railway that blocks IPs? I had never configured anything like that.


matheusmiguel

I switched servers, and it worked correctly. My question is: is there a firewall or some mechanism on Railway that blocks IPs? I had never configured anything like that.

3 months ago

Railway doesn't have a mechanism to allow/block IPs.


Status changed to Closed medim • about 11 hours ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...