Today a Microsoft Windows machine was unable to use the official MySQL client called "MySQL Connector/ODBC" to connect to a different MySQL server on a GNU/Linux machine, in the same LAN, via TCP/IP, standard port 3306
, listening on all interfaces and without firewalls.
The connection from the Microsoft Windows client failed with this error message:
Connection Failed [MySQL][ODBC 8.0(a) Driver] Can't open named pipe to host: xxx pipe: Mysql (s):
Since this error message is nonsense... what's wrong here?
If you get the error "Can't open named pipe
" note that there is a bug in the MySQL connector, at least version 8.0
.
The client is ignoring your check on the TCP/IP Server
option and it's using a connection method called Named Pipe
that it's not supported by your server (and should not - to be honest).
To make sure that the client does not use the Named Pipe
method, select it, empty the text field (the one that in the example contains the text "Mysql
"), and select again TCP/IP
.
In short: this red textarea MUST be empty (by first selecting it, temporarily):
If you empty the "Named Pipe" text area, it will work!
It would be nice to discover if it exists an upstream bug in MySQL for that.