Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

const MYSQL_CONF = {
host: 'db-mysql-v1-29254-do-user-7904424-0.a.db.ondigitalocean.com',
username: 'doadmin',
password: 'xxxxxxxx',
database: 'defaultdb',
// port: 25060,
dialect: 'mysql',
dialectOptions: {
ssl: {
ssl: true,
cert: fs.readFileSync(path.resolve(__dirname, 'ca-certificate.crt')).toString('utf8')
}
}
}
const con = mysql.createConnection(MYSQL_CONF)
con.connect((err, result) => {
if (err) {
throw new Error(err)
return
}
});
The configuration is coded above, and i am not sure if this is the correct one…The error always states the Error: connect ETIMEDOUT…
the funny thing is that i can connect the cluster with mysql client terminal and workbench on my local machine, but it doesn’t work with node.js…
Could someone help me out, many thanks?
setec
etxdev
3a956ebeda09409f879334ecda13c0
Abhishek M S
MD JUWEL RANA
Matthew Narrell
dana
Ben Roberts
Tuan Tran
BigDarkBlueCrab