I don't know how to connect to MySQL from Workers.

I am currently trying to connect to a MySQL database on Amazon RDS from Cloudflare Workers to execute a query statement, but I can't figure out how to do it successfully. Is there anyone who has a similar problem to mine or can give me an example of code that actually works? Best regards. (I am developing with wrangler)
1 Reply
raiyansarker
raiyansarker12mo ago
I believe AWS Aurora serverless database have http api, unless aws exposes http api, there is no way at the moment, although you can use planetscale that also provides mysql with http adapters. I am not sure about the state of tcp workers, although native connection with postgresql database is supported I recently saw this, https://orm.drizzle.team/docs/quick-postgresql/aws-data-api, I am not sure whether you are asking for something like this, and I don't use RDS
Want results from more Discord servers?
Add your server