Trying to connect with private database instead of public url (also sql editor question)

scottk16
HOBBY

a month 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

0 Replies

a month ago

Railway does not have a built in editor, you’ll have to use an external one like dbgate


a month 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


scottk16
HOBBY

a month ago

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 month ago

huh, didn’t know there was a template


a month ago

personally I have it installed on my pc, but that works too


a month ago

We don't? since when? 😆


a month ago

Since the old one didn’t work, was it updated recently?


a month ago

Yes lol


a month ago

Ah great, I just use dbgate I didn’t know


scottk16
HOBBY

a month ago

So where can I find the editor? :>


a month ago

From the database tab in the database service!


a month ago

1422627570536681500


Loading...
Trying to connect with private database instead of public url (also sql editor question) - Railway Help Station