Stunnel with mysql

I have setup mysql over stunnel between a server and a client. All appears to be working fine and I can see the ports appear in netstat.

However when trying to connect from the client using 'mysql -u root -p' I receive the following error:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Any ideas how I should get around this error?

 

 

 

 

Top