Might be that mysql server not listening on a socket or that it is in a different place. Thus first check if mysql is running
If its running check the existence of the socket file.
You might check on the config file of mysql. Might give a hint. (Not sure about the path)
Or you could run mysqld in debug mode and see what the server says when you try to connect