I can't connect to the mysql database
tannynogales
HOBBYOP

a year ago

I am trying to deploy a (1) strapi project with (2) mysql. Both services are in roble-strapi project.
After strapi start instruction, i get a connect database error if I use ${{ MySQL.MYSQLURL }} in DATABASEHOST, but if I use "roundhouse.proxy.rlwy.net" value works perfectly.

Strapi .env:
DATABASEPORT=29788 DATABASECLIENT = mysql
DATABASENAME = railway DATABASEUSER = some-user
DATABASEPASSWORD = some-pass DATABASEHOST = roundhouse.proxy.rlwy.net

I am worry to get extra egress costs by using roundhouse.proxy.rlwy.net.

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

Solved

2 Replies

brody
EMPLOYEE

a year ago

You would get egress costs with the public TCP proxy host, to avoid that, use the private host and port.


tannynogales
HOBBYOP

a year ago

I needed to configure the port, now it works correctly using the private network.

Attachments


Status changed to Solved brody over 1 year ago


Loading...