a year ago
Hi, I'm developing a discord bot and attempting to connect it to a Postgres database hosted on Railway but my code doesn't seem to be able to find the Database unless I have it set using the url and not the private placeholders. Any ideas?
Also in addition, just wondering how to open the SQL Editor so I can drop tables etc, thanks
12 Replies
a year ago
Railway does not have a built in editor, you’ll have to use an external one like dbgate
a year ago
as for why the discord bot isn’t able to connect through the private network, it could be any number of reasons.
What database are you using? Have you taken a read through this page? https://docs.railway.com/guides/private-networking
Nope, haven't gone through this yet, will take a look now, thank you, and for the DbGate I assume I can do this? https://railway.com/deploy/dbgate
a year ago
huh, didn’t know there was a template
a year ago
personally I have it installed on my pc, but that works too
a year ago
We don't? since when? 😆
a year ago
Since the old one didn’t work, was it updated recently?
a year ago
Yes lol
a year ago
Ah great, I just use dbgate I didn’t know
a year ago
From the database tab in the database service!
a year ago
