After spending hours of finding out the fault, I try to find help inside this tutorial. Using Arduino IDE 1.8.5
Reading a lot of articles to Connecting to MySQL even the hints of Dr. Charles A. Bell
Using the library - tried the scetch mysql-connect.ino
Having mysql db on a local maschine (localhost), of course open also the firewall and free the port 3306
Acess with an easy php script via browser is working
#include <ESP8266WiFi.h>
#include <Ethernet.h>
#include <MySQL_Connection.h>
//find out my mac_addr NodeMCU 8266
byte mac_addr[] = { 0x68, 0xC6, 0x3A, 0xD7, 0x44, 0x4F };
//find out my IP-Adress with ipconfig to
IPAddress server_addr(192,168,178,149);
char user[] = "root"; // MySQL user login username
char password[] = ""; // MySQL user login password - set to none
.... and so on every thing like publishes in the standard sketch from dr.bell ...
Serial.println("Connecting...");
if (conn.connect(server_addr, 3306, user, password)) {
delay(3000);
}
else {
Serial.println("Connection failed.");
}
Sketch is working without error, but getting no connection to mysql db
Have no further ideas, don't know what to do else, has anybody help.
Thanks in advance.