Postgre sql Host empty string
abdulrehmanjr
PROOP

a year ago

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

a year 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 over 1 year ago


abdulrehmanjr
PROOP

a year 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 over 1 year ago


chandrika
EMPLOYEE

a year ago

Hi Abul wave emoji, 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 over 1 year ago


abdulrehmanjr
PROOP

a year ago

thanks i will check it


Status changed to Awaiting Railway Response Railway over 1 year ago


Status changed to Solved chandrika over 1 year ago


Status changed to Awaiting Railway Response abdulrehmanjr over 1 year ago


abdulrehmanjr
PROOP

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


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 over 1 year ago


abdulrehmanjr
PROOP

a year ago

okay thanks


Status changed to Awaiting Railway Response Railway over 1 year ago


Status changed to Solved ray-chen over 1 year ago


Loading...