Connection failing to database
fredoyetayo
PROOP

11 days 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

11 days ago

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

Status changed to Open Railway 11 days ago


Are there any errors in the database logs?


manuproject
HOBBY

11 days 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

11 days ago

yes


manuproject

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

fredoyetayo
PROOP

11 days 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
HOBBY

11 days 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

11 days 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

11 days 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...