Anonymous
TRIALOP
2 years ago
what is the possible reason why it failed to connect to MySQL database? I have set the variables correctly, I am sorry this is my first time deploying my work in railway.
13 Replies
brody
EMPLOYEE
2 years ago
in your package.json try setting your start script to sleep 3 && node index.js
brody
EMPLOYEE
2 years ago
show me your new deployment logs please
brody
EMPLOYEE
2 years ago
can you connect to the database locally?
brody
EMPLOYEE
2 years ago
show me the code that connects to mysql please
brody
EMPLOYEE
2 years ago
you are missing the port variable for mysql
brody
EMPLOYEE
2 years ago
no problem!