Handshake inactivity timeout

zephireisHOBBY

9 months ago

App deploys okay but querying the database gives me a handshaketime out.
I created a pooling to see if that would work it didn't

not sure where to go from here.

0 Replies

zephireisHOBBY

9 months ago

this is mysql


9 months ago

not sure what you mean by "I created a pooling "


zephireisHOBBY

9 months ago

const db = mysql.createPool({


zephireisHOBBY

9 months ago

I don;t know what it means before I just used a single connection.


zephireisHOBBY

9 months ago

const db = mysql.createConnection({
host: process.env.DBHOST, user: process.env.DBUSER,
password: process.env.DBPASSWORD, database: process.env.DBDATABASE
});


9 months ago

are you using the private network to connect to the database


zephireisHOBBY

9 months ago

i uploaded my sql file to railay


zephireisHOBBY

9 months ago

anytime I add port my app doesn't deploy so I don't put the port railway provided


zephireisHOBBY

9 months ago

I don't think so im not sure


9 months ago

please use the private network to connect to your database


zephireisHOBBY

9 months ago

What is that? The tables are on railway I set the environment vars app deploys I can see my webapp pages but anytime I query database to login i get the handsake error or my error handling logs are caught.

I looked in mysql the private network seems to be enabled but not sure what that would be used for for this instance.


9 months ago

use the private domain and port to connect to the database


Handshake inactivity timeout - Railway Help Station