9 months ago
I'm trying to connect my MySQL database to my Laravel API deployed on Railway. When I use the internal URL or host provided by Railway (e.g., DB_HOST set to the internal address like mysql.internal), I encounter a "connection refused" error. However, when I use the external or public URL (like autorack.proxy.rlwy.net), the connection works successfully. It seems that Laravel cannot resolve or access the internal database host, while the external/public host works without issues. Any guidance on why this might be happening or how to properly configure the internal connection would be appreciated.
ⓘ Deployment information is only viewable by project members and Railway employees.
2 Replies
4 months ago
same thing happening over here, internal host doesn't work. external does.
2 months ago
I am having the same issue external works but internal does not work