Postgre sql Host empty string

Before when ever i created a postgre sql database it showed me the pghost in variables but today whenever i am creating a database it is showing me empty string and also is there any way to change the default name of pgdatabase

Solved

7 Replies

2 years ago

Hello,

You have private networking disabled for this project and that is why that variable is empty, since its a private hostname.

Go into any one of your services and enable private networking.


Status changed to Awaiting User Response Railway almost 2 years ago


okay so what is private networking does can you please tel me as i am handling this account for my client so need to explain for my every action.


Status changed to Awaiting Railway Response Railway almost 2 years ago


chandrika
EMPLOYEE

2 years ago

Hi Abul 👋, we've got some awesome documentation on our private networking — what it is, how it works, some caveats around the feature. Here's the article: https://docs.railway.app/reference/private-networking

We also an in depth guide on how to use private networking in Railway if you would like to configure it for your projects: https://docs.railway.app/guides/private-networking


Status changed to Awaiting User Response Railway almost 2 years ago


thanks i will check it


Status changed to Solved chandrika almost 2 years ago


Status changed to Awaiting Railway Response abdulrehmanjr almost 2 years ago


Hey, few more questions . in dev mode how i can access database services using public url or host . becuase using private host i can't connect my databse with pgadmin4. if their is any way to access them in dev mode on my localmachine or i have to set the public url in env.Thanks


2 years ago

You can access it using the public URL. If you're having connection issues over the public network, check and ensure that you're supplying the correct params (host, port, username, password).


Status changed to Awaiting User Response Railway almost 2 years ago


okay thanks


Status changed to Awaiting Railway Response Railway almost 2 years ago


Status changed to Solved ray-chen almost 2 years ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...