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

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

Closed

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


scottk16
HOBBYOP

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


scottk16
HOBBYOP

a year ago

So where can I find the editor? :>


a year ago

From the database tab in the database service!


a year ago

1422627570536681522


Welcome!

Sign in to your Railway account to join the conversation.

Loading...