i cant connect MySQL service to my backend service
admin-esegames
FREEOP

13 days ago

i have an issue where by i created an MySQL service then also created my backed services, but the main challenge now is that i cant connect my backend to use the MySQL service i juts dont know what am doing wrong

below are the credential needed my by app to run DB

DB_CONNECTION=mysql
DB_HOST=*****
DB_PORT=3306
DB_DATABASE=****
DB_USERNAME=*****
DB_PASSWORD=*****

thanks everyone

$10 Bounty

1 Replies

Status changed to Awaiting Railway Response Railway 13 days ago


You can use reference variables in your service to access MySQL credentials.

https://docs.railway.com/variables/reference#reference-variables

For example, for the host variable in your service, you would bind it to &{{MySQL.MYSQLHOST}}.


Loading...