Error connecting

I am facing a connection error, even when doing all the requested procedures to connect to a database in the "data connection" it appears as not connected, I have already used all the variables in Mysql Worchbenk and tested positive and in the terminal also connected.

12 Replies

2 years ago

Please show any errors you are getting.


As shown in the image, I connected through the log console, in the railway data it says no


2 years ago

Does the database have a TCP Proxy? send a screenshot of its public networking section please.


This one?

Attachments


2 years ago

Without the scribble please.


I believe I have to connect this proxy, now how?In my code?


please teach me how to connect proxy


2 years ago

You need to connect to the database with it's database url variable.


this is the variable mysql://${{root}}:${{RuXnKeyytJqWvgyJCPOFsWqcShahoHyZ}}@${{viaduct.proxy.rlwy.net}}:${{25760}}/${{railway}}

Do I use it as this way to connect?
mysql -h viaduct.proxy.rlwy.net -u root -p -P 25760


how to connect?


2 years ago

Please have patience as this is community support.


2 years ago

I recommend familiarizing yourself with the technologies involved, how to connect to a database would not be directly related to Railway and thus the forum is going a bit out of scope.


Loading...