Good morning everyone,
I have a problem connecting to a SQL instance with python using mysql connector. The complete server adress / host name looks like "MSQL\INST1" and I can connect to it through Excel without any problem.
If I try
mysql.connector.connect(host="MSQL\INST1", user=" Report", passwd="123", db="abc")
I get:
MySQLInterfaceError: Unknown MySQL server host 'MSQL\INST1' (11)
And if I try it without the instance:
mysql.connector.connect(host="MSQL", user=" Report", passwd="123", db="abc")
I get:
MySQLInterfaceError: Can't connect to MySQL server on 'MSQL' (10061)
Do I miss something? In every tutorial I found the host name is without any instance...
Best regards, Joachim