Named pipes alternative using MySqlConnection

Connection string

This MySQL Connector/Net connection string can be used for connections to MySQL.

Server=myServerAddress;Port=-1;Database=myDataBase;Uid=myUsername;Pwd=myPassword;

It is the port value of -1 that tells the driver to use named pipes network protocol. This is available on Windows only. The value is ignored if Unix socket is used.