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.
9 Replies
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
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?
2 months ago
yes
manuproject
can you share the screenshot of what youre doing and what method re u using for the connection ??
2 months ago
Attachments
fredoyetayo
yes
2 months ago
Try selecting the service, then press Ctrl/Cmd + K and select redeploy source image.
fredoyetayo

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
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
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
2 months ago
Please create your own thread.
