Added support for MySQL sockets, closes #875