First, MySQL files should be on the server.
Second, regarding your socket problem. It depends, if that socket is a UNIX
domain socket, the error could indicate something wrong with the OS which
is running on the server or a bug in MySQL. If it's a internet domain
socket, it could indicate problems with your network configuration/wrong IP
configuration in your database etc.