R
Railway4mo ago
uzy

SQL Editor

does railway have this and im not being able to connect to my postgres database im struggling to get this connecting any help thanks
Solution:
If you are connecting from your deployed application you can use the private URL. If you are using a database management application on your computer, you will need to use the public url
Jump to solution
9 Replies
Percy
Percy4mo ago
Project ID: N/A
MantisInABox
MantisInABox4mo ago
There is no SQL editor, just a data viewer tab. It's recommended that you use an actual database management application, like dbeaver, data grip, or even pgadmin4
uzy
uzyOP4mo ago
I have tried connecting but it doesn't connect
MantisInABox
MantisInABox4mo ago
You will need to use the DATABASE_PUBLIC_URL to connect from an external source. The DATABASE_URL now defaults to the private URL for internal networking
uzy
uzyOP4mo ago
and this will encour a charge if I'm not mistaken also what you mrsn by the the database url now defaults to the private networking thanks for your help
MantisInABox
MantisInABox4mo ago
By defaulting to the private URL there is no egress when used by your deployed application. You will pay egress for connecting with a database management application though over the public url
uzy
uzyOP4mo ago
so do I have to use the public url to connect databases or can I use my private url which is what I have been trying to do
Solution
MantisInABox
MantisInABox4mo ago
If you are connecting from your deployed application you can use the private URL. If you are using a database management application on your computer, you will need to use the public url
uzy
uzyOP4mo ago
how do I connect using the deployed application
Want results from more Discord servers?
Add your server