Fail to connect backend to MyAQL database
jaycode404
HOBBYOP
2 years ago
So I deploy my backend with the necessary config, then creare a MySQL database te get the variables and passthem to the backend, and when its supposed to work it stays in error, and another situation is that when i get to connect the database to the backend i get CORS issues from my front end even tho the backend is configured to allow requests from the frontend url
1 Replies
brody
EMPLOYEE
2 years ago
Hello, I've had a quick look at your project and you are using the wrong database credentials.
To fix this, Please use reference variables - https://docs.railway.app/guides/variables#referencing-another-services-variable