Force MySQL client to connect by TCP instead of a unix socket

Make this as default option by editing your my.cnf so it has this:

[client]
protocol=tcp
If you do not want to modify the configuration - you can also use the --protocol switch of the mysql client