To run, first replace the database connection details here:
mysql2-on-cf-workers/src/index.ts
Line 19 in f1505c1
Make sure you are using npx wrangler dev
with Wrangler version 3.111.0.
This has also been deployed here: https://mysql2-on-cf-workers.toms-projects.workers.dev/