Can't Connect to MySQL Instance – Getting permission denied root@'ip'

rm-rf-main
PRO

11 days ago

Hi Railway Team,

I’ve been using a MySQL service on Railway for a while and it was working perfectly via both my project and external tools like DBeaver. However, recently I’m unable to connect at all — getting the error:

```ERROR 1045 (28000): Access denied for user 'root'@'my.ip.address'```

I haven’t changed anything in the configuration. Could you please confirm if:

  • Public/external access to MySQL has been disabled?

  • There’s any change in allowed IPs or connection policies?

Also, if railway connect is now the only way to access the DB, is there a way to use it in production environments where CLI tunneling isn't feasible?

Appreciate any help!

Awaiting User Response

2 Replies

Railway
BOT

11 days ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


10 days ago

Heya, this looks like an issue with your mysql instance (not on our end), you may want to check and ensure outside connections are enabled. The "denied" error shows you're able to reach mysql, but it's not accepting your creds.


Status changed to Awaiting User Response Railway 10 days ago