Connection failing to database
fredoyetayo
PROOP

2 months ago

I'm getting this error while trying to connect to the database.


We are unable to connect to the database via SSH.

Connection lost: The server closed the connection.


$20 Bounty

9 Replies

Railway
BOT

2 months ago

This thread has been opened as a bounty so the community can help solve it.

Status changed to Open Railway • about 2 months ago


Are there any errors in the database logs?


manuproject
FREE

2 months ago

can you share the screenshot

of what youre doing and what method re u using for the connection ??


0x5b62656e5d

Are there any errors in the database logs?

fredoyetayo
PROOP

2 months ago

yes


manuproject

can you share the screenshot of what youre doing and what method re u using for the connection ??

fredoyetayo
PROOP

2 months ago

Screenshot 2026-08-10 at 10.48.51.png

Attachments


fredoyetayo

yes

Try selecting the service, then press Ctrl/Cmd + K and select redeploy source image.


fredoyetayo

![Screenshot 2026-08-10 at 10.48.51.png](https://station-server.railway.com/attachments/att_01kznzqjp6feyvdpk6vepd8b2j)

manuproject
FREE

2 months ago

this matches a known railway issue, not your config. same exact error message showed up on a postgres db panel a few months back (station.railway.com/questions/we-are-unable-to-connect-to-the-database-0f099290) and a railway employee confirmed it was on their end, not the users app, and fixed it from their side.

workaround while it's happening: use the Connect button, grab the public tcp proxy connection string, and connect with an actual mysql client (cli, dbeaver, tableplus, workbench) instead of the built-in data tab. that bypasses the broken internal path and still lets you view/query your data


shcen
PRO

2 months ago

This hasn't worked for me - I see the same issue


shcen

This hasn't worked for me - I see the same issue

shcen
PRO

2 months ago

Same error as fredoyetayo above.

when i try to connect with tableplus, i get "Lost connection to MySQL server at 'reading initial communication packet', system error: 0"


shcen

This hasn't worked for me - I see the same issue

Please create your own thread.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...