Can't connect mySQL to my nodeJs app

I have been trying to connect my node app to aiven free mysql for some days now and I can’t make a headway, I’d appreciate some help from the community, Thanks.

here’s the code below:

bump, would appreciate some head up.

You don’t seem to have specified the port. It’s not on the default one; multiple users are accessing the server via the address that name resolves to. Make sure you use the right one for whether it’s using the normal MySQL protocol (probably) or the new MySQL X one.

Also, you should change your password, and probably drop and rebuild your service to get a new name too, because your blurring isn’t sufficient. :sweat_smile:

2 Likes