Look for my.cnf in more places
Try a little bit harder to find the correct UNIX socket path, if the user is simply requesting a local connection.