Mysql database w/ arduino uno and nodemcu ESP8266 D1

bunny9:
So then I realized that this is for an Uno w an inbuilt ESP8266.

No, what makes you think that? It's code for programming the ESP8266 directly, e.g. a NodeMCU or Wemos D1 mini.

I prefer using HTTP requests to the server, instead of running a MySQL connector on the ESP8266.
This is my code:

Pieter