#Handshake timeout error on mySQL
33 messages · Page 1 of 1 (latest)
Project ID: ad4f96c1-5839-4882-89ea-53b1a95f4719
Are you using the correct environment variables?
yes, I think so
const mysql = new MySQLDriver({
host: process.env.MYSQLHOST,
user: process.env.MYSQLUSER,
password: process.env.MYSQLPASSWORD,
database: process.env.MYSQLDATABASE,
});
Maybe I should store my data as a json in a discord message 
Alright, thanks for your help Brody!
if possible do you wanna provide me with a full code snippet? code that just connects to the db and would print a success message
async function connectDB() {
// ---> DATABASE
const mysql = new MySQLDriver({
host: process.env.MYSQLHOST,
user: process.env.MYSQLUSER,
password: process.env.MYSQLPASSWORD,
database: process.env.MYSQLDATABASE,
});
await mysql.connect()
const db = new QuickDB({ driver: mysql })
}
connectDB().then(console.log("success")).catch(error => console.error(error))
something like this?
Alright
"Client does not support authentication protocol requested by server; consider upgrading MySQL client"
lol

yea, that's the package I'm using
thanks a ton 😭
so while quick.db has been updated recently, the underlying mysql package hasn't, and doesn't support mysql v8
Darn, okay thanks Brody!
I guess I'll use a different library

I appreciate your help!
Alright, I'll check it out, thank you :D