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 12 months 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 12 months ago


unicodeveloper
PRO

a year ago

You are welcome.


Status changed to Awaiting User Response Railway 12 months ago


Status changed to Solved unicodeveloper 12 months ago


christwardministry
HOBBY

9 months 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 9 months 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

brody
EMPLOYEE

9 months ago

Please open your own thread for that.


Status changed to Awaiting User Response Railway 9 months ago


Status changed to Closed brody 9 months ago


Loading...