How to connect to mysql running on another project using internal URL
manojnaidu619
PROOP

a year ago

I have a project with a MySQL db and I cannot connect to it from another project using MYSQL_URL variable. However, MYSQL_PUBLIC_URL works.

I'm seeing error logs:

"Can't reach database server at `mysql.railway.internal:3306`"

"Please make sure your database server is running at `mysql.railway.internal:3306`"

I prefer to setup connection using internal URL to optimize latency.

Closed

5 Replies

unicodeveloper
PRO

a year ago

Private networking only works within a project. You can't connect a private MYSQL URL db to another project.


Status changed to Awaiting User Response Railway over 1 year ago


unicodeveloper

Private networking only works within a project. You can't connect a private MYSQL URL db to another project.

manojnaidu619
PROOP

a year ago

Thanks for your information


Status changed to Awaiting Railway Response Railway over 1 year ago


unicodeveloper
PRO

a year ago

You are welcome.


Status changed to Awaiting User Response Railway over 1 year ago


Status changed to Solved unicodeveloper over 1 year ago


christwardministry
HOBBY

a year ago

I have a similar issue, except everything is inside the same project. I am using the MYSQL_PRIVATE_URL provided, but still getting connection error to port 3306


Status changed to Awaiting Railway Response Railway about 1 year ago


christwardministry

I have a similar issue, except everything is inside the same project. I am using the MYSQL\_PRIVATE\_URL provided, but still getting connection error to port 3306

a year ago

Please open your own thread for that.


Status changed to Awaiting User Response Railway about 1 year ago


Status changed to Closed brody about 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...