Edit my.cnf (i.e. /opt/lampp/etc/my.cnf), search for "skip-networking" and delete that line(s) or uncomment that line(s) (by inserting '#' in first coloumn).
But I got an other problem which I don't know where to look to solve the password credential problem. I get an error, see below, message when when the application tires to contact the MySql server. I'm using Glassfish v2.
"java.sql.SQLException: Error in allocating a connection. Cause: No PasswordCredential found"