FYI: You may forward remote UNIX socket to a local port like:
ssh -N -L 127.0.0.1:5000:/var/run/mysqld/mysqld.sock sshuser@remotehost
Then you connect a mysql client to the local IP 127.0.0.1 and port 5000